All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: "Templin, Fred L" <Fred.L.Templin@boeing.com>
Cc: netdev@vger.kernel.org, yoshfuji@linux-ipv6.org
Subject: Re: [Resend][PATCH 01/05] ipv6: RFC4214 Support (4)
Date: Mon, 12 Nov 2007 17:11:04 -0500	[thread overview]
Message-ID: <4738CF78.6030804@hp.com> (raw)
In-Reply-To: <39C363776A4E8C4A94691D2BD9D1C9A1029EDC14@XCH-NW-7V2.nw.nos.boeing.com>

Hi Fred

First, are you breaking up the functionality into multiple
patches _only_ to ease review and plan to submit the final
version as a big patch?

The reason I ask, is that you Patch 02, which adds Kconfig
pieces could break compilations if the functionality is
enabled.


Templin, Fred L wrote:
>  
> 
> -----Original Message-----
> From: osprey67 [mailto:osprey67@yahoo.com] 
> Sent: Monday, November 12, 2007 7:54 AM
> To: netdev@vger.kernel.org
> Subject: [PATCH 01/05] ipv6: RFC4214 Support (4)
> 
> From: Fred L. Templin <fred.l.templin@boeing.com>
> 
> This is experimental support for the Intra-Site Automatic
> Tunnel Addressing Protocol (ISATAP) per RFC4214. It uses
> the SIT module, and is configured using the unmodified
> "ip" utility with device names beginning with: "isatap".
> 
> The following diffs are specific to the Linux 2.6.24-rc2
> kernel distribution.
> 
> Signed-off-by: Fred L. Templin <fred.l.templin@boeing.com>
> 
> ---
> 
> --- linux-2.6.24-rc2/include/linux/if.h.orig    2007-11-08
> 12:05:47.000000000 -0800
> +++ linux-2.6.24-rc2/include/linux/if.h 2007-11-08 08:26:44.000000000
> -0800
> @@ -61,6 +61,7 @@
>   #define IFF_MASTER_ALB 0x10            /* bonding master, balance-alb.
> */
>   #define IFF_BONDING    0x20            /* bonding master or slave
> */
>   #define IFF_SLAVE_NEEDARP 0x40         /* need ARPs for validation
> */
> +#define IFF_ISATAP     0x80            /* ISATAP interface (RFC4214)
> */
> 
>   #define IF_GET_IFACE   0x0001          /* for querying only */
>   #define IF_GET_PROTO   0x0002
> --- linux-2.6.24-rc2/include/linux/in.h.orig    2007-11-09
> 08:00:32.000000000 -0800
> +++ linux-2.6.24-rc2/include/linux/in.h 2007-11-12 07:37:05.000000000
> -0800
> @@ -253,6 +253,14 @@ struct sockaddr_in {
>   #define ZERONET(x)     (((x) & htonl(0xff000000)) ==
> htonl(0x00000000))
>   #define LOCAL_MCAST(x) (((x) & htonl(0xFFFFFF00)) ==
> htonl(0xE0000000))
> 
> +/* Special-Use IPv4 Addresses (RFC3330) */
> +#define PRIVATE_10(x)  (((x) & htonl(0xff000000)) == htonl(0x0A000000))
> +#define LINKLOCAL_169(x) (((x) & htonl(0xffff0000)) ==
> htonl(0xA9FE0000))
> +#define PRIVATE_172(x) (((x) & htonl(0xfff00000)) == htonl(0xAC100000))
> +#define TEST_192(x)    (((x) & htonl(0xffffff00)) == htonl(0xC0000200))
> +#define ANYCAST_6TO4(x)        (((x) & htonl(0xffffff00)) ==
> htonl(0xC0586300))
> +#define PRIVATE_192(x) (((x) & htonl(0xffff0000)) == htonl(0xC0A80000))
> +#define TEST_198(x)    (((x) & htonl(0xfffe0000)) == htonl(0xC6120000))
>   #endif
> 
>   #endif /* _LINUX_IN_H */
> --- linux-2.6.24-rc2/include/net/addrconf.h.orig        2007-11-08
> 12:06:17.000000000 -0800
> +++ linux-2.6.24-rc2/include/net/addrconf.h     2007-11-09
> 08:12:29.000000000 -0800
> @@ -241,6 +241,14 @@ static inline int ipv6_addr_is_ll_all_ro
>                  addr->s6_addr32[3] == htonl(0x00000002));
>   }
> 
> +#if defined(CONFIG_IPV6_ISATAP)
> +/* only for IFF_ISATAP interfaces */
> +static inline int ipv6_addr_is_isatap(const struct in6_addr *addr)
> +{
> +       return ((addr->s6_addr32[2] | htonl(0x02000000)) ==
> htonl(0x02005EFE));
> +}
> +#endif
> +

I don't see the need for the # if above.

-vlad


  parent reply	other threads:[~2007-11-12 22:11 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12 21:01 [Resend][PATCH 01/05] ipv6: RFC4214 Support (4) Templin, Fred L
2007-11-12 22:03 ` [PATCH 01/04] ipv6: RFC4214 Support (5) Templin, Fred L
2007-11-12 22:03 ` [PATCH 02/04] " Templin, Fred L
2007-11-12 22:03 ` [PATCH 03/05] " Templin, Fred L
2007-11-12 22:03 ` [PATCH 04/04] " Templin, Fred L
2007-11-12 22:18   ` [PATCH 05/05] " Templin, Fred L
2007-11-12 23:14     ` [PATCH 01/01] ipv6: RFC4214 Support (v2.0) Templin, Fred L
2007-11-13 15:51       ` Vlad Yasevich
2007-11-13 16:32         ` Templin, Fred L
2007-11-13 16:59           ` Vlad Yasevich
2007-11-13 17:29             ` Templin, Fred L
2007-11-13 18:01             ` [PATCH 01/01] ipv6: RFC4214 Support (v2.1) Templin, Fred L
2007-11-13 19:03               ` Vlad Yasevich
2007-11-15  6:44               ` [PATCH 01/01] ipv6: RFC4214 Support (v2.2) Templin, Fred L
2007-11-15 11:22                 ` YOSHIFUJI Hideaki / 吉藤英明
2007-11-15 18:06                   ` Templin, Fred L
2007-11-15 11:48                 ` YOSHIFUJI Hideaki / 吉藤英明
2007-11-15 18:11                   ` Templin, Fred L
2007-11-15 18:44                     ` YOSHIFUJI Hideaki / 吉藤英明
2007-11-15 21:59                       ` Templin, Fred L
2007-11-20 17:36                 ` [PATCH 01/01] ipv6: RFC4214 Support (v2.4) Templin, Fred L
2007-11-20 17:43                   ` YOSHIFUJI Hideaki / 吉藤英明
2007-11-21  1:34                   ` David Miller
2007-11-21  1:41                     ` David Miller
2007-11-26 17:16                   ` [PATCH 01/01] ipv6: RFC4214 Support (v2.5) Templin, Fred L
2007-11-26 18:00                     ` YOSHIFUJI Hideaki / 吉藤英明
2007-11-27 16:57                       ` Templin, Fred L
2007-11-29 10:29                     ` Herbert Xu
2007-11-29 10:54                       ` YOSHIFUJI Hideaki / 吉藤英明
2007-11-29 11:12                         ` Herbert Xu
2008-01-15 19:57                         ` [PATCH 01/03] ISATAP V2 (header file changes) Templin, Fred L
2008-01-15 19:59                           ` [PATCH 02/03] ISATAP V2 (ndisc.c; route.c changes) Templin, Fred L
2008-01-15 20:00                           ` [PATCH 03/03] ISATAP V2 (sit.c changes) Templin, Fred L
2008-01-22 16:51                           ` status inquiry (RE: [PATCH 01/03] ISATAP V2 (header file changes)) Templin, Fred L
2008-01-29 16:41                           ` status inquiry#2 " Templin, Fred L
2008-02-05 17:53                           ` status inquiry #3 " Templin, Fred L
2008-03-24  5:37                           ` [PATCH 01/03] ISATAP V2 (header file changes) YOSHIFUJI Hideaki / 吉藤英明
2007-11-12 22:11 ` Vlad Yasevich [this message]
2007-11-12 22:15   ` [Resend][PATCH 01/05] ipv6: RFC4214 Support (4) Templin, Fred L
2007-11-12 22:22     ` Vlad Yasevich
2007-11-12 22:26       ` Templin, Fred L

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=4738CF78.6030804@hp.com \
    --to=vladislav.yasevich@hp.com \
    --cc=Fred.L.Templin@boeing.com \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.