Netdev List
 help / color / mirror / Atom feed
From: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
To: dlstevens@us.ibm.com
Cc: davem@davemloft.net, netdev@oss.sgi.com, yoshfuji@linux-ipv6.org
Subject: Re: IPV6 RFC3542 compliance [PATCH]
Date: Tue, 07 Jun 2005 16:55:36 +0900 (JST)	[thread overview]
Message-ID: <20050607.165536.75463878.yoshfuji@linux-ipv6.org> (raw)
In-Reply-To: <20050607.164749.62298775.yoshfuji@linux-ipv6.org>

In article <20050607.164749.62298775.yoshfuji@linux-ipv6.org> (at Tue, 07 Jun 2005 16:47:49 +0900 (JST)), YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> says:

> No, kernel should send 5, if application use old API, of course.

This can be implemented like this (based on codes from our repository):

       /* RFC2292bis */
       if (np->rxopt.bits.rxhbh && opt->hop) {
               u8 *ptr = skb->nh.raw + opt->hop;
               put_cmsg(msg, SOL_IPV6, IPV6_HOPOPTS, (ptr[1]+1)<<3, ptr);
       }
       /* RFC2292 */
       if (np->rxopt.bits.rxhbh2292 && opt->hop) {
               u8 *ptr = skb->nh.raw + opt->hop;
               put_cmsg(msg, SOL_IPV6, IPV6_2292HOPOPTS, (ptr[1]+1)<<3, ptr);
       }

--yoshfuji

  reply	other threads:[~2005-06-07  7:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-06 19:48 IPV6 RFC3542 compliance [PATCH] David Stevens
2005-06-07  5:19 ` YOSHIFUJI Hideaki / 吉藤英明
2005-06-07  6:25   ` David Stevens
2005-06-07  6:33     ` YOSHIFUJI Hideaki / 吉藤英明
2005-06-07  6:50       ` David Stevens
2005-06-07  7:05         ` YOSHIFUJI Hideaki / 吉藤英明
2005-06-07  7:40           ` David Stevens
2005-06-07  7:47             ` YOSHIFUJI Hideaki / 吉藤英明
2005-06-07  7:55               ` YOSHIFUJI Hideaki / 吉藤英明 [this message]
2005-06-07  8:04                 ` David Stevens
2005-06-07  8:01               ` David Stevens
2005-06-07  8:14                 ` YOSHIFUJI Hideaki / 吉藤英明
2005-06-08 18:49                   ` David Stevens
2005-06-07  6:35     ` David Stevens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050607.165536.75463878.yoshfuji@linux-ipv6.org \
    --to=yoshfuji@linux-ipv6.org \
    --cc=davem@davemloft.net \
    --cc=dlstevens@us.ibm.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox