lkml.org 
[lkml]   [2008]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 001/001] ipv4: enable use of 240/4 address space
From
Hello.

In article <20080108011057.GA21168@cisco.com> (at Mon, 7 Jan 2008 17:10:57 -0800), Vince Fuller <vaf@cisco.com> says:

> #define IN_MULTICAST_NET 0xF0000000
>
> +#define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000)
> +#define IN_CLASSE_NET 0xffffff00
> +#define IN_CLASSE_NSHIFT 8
> +#define IN_CLASSE_HOST (0xffffffff & ~IN_CLASSE_NET)
> +
> +/*
> + * these are no longer used
> #define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000)
> #define IN_BADCLASS(a) IN_EXPERIMENTAL((a))
> +*/

Please do not remove this, but have these instead:

#define IN_EXPERIMENTAL(a) IN_CLASSE((a))
#define IN_BADCASS(a) IN_CLASSE((a))

And, I think it is good to remove BADCLASS() (inside
#ifdef __KERNEL__ .. #endif) because we do not have its users
any longer, right?

Regards,

--yoshfuji


\
 
 \ /
  Last update: 2008-01-12 06:51    [W:0.209 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site