Commit f275ee0f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by David S. Miller
Browse files

IN_BADCLASS: fix macro to actually work

Commit 65cab850

 ("net: Allow class-e address assignment via ifconfig
ioctl") modified the IN_BADCLASS macro a bit, but unfortunatly one too
many '(' characters were added to the line, making any code that used
it, not build properly.

Also, the macro now compares an unsigned with a signed value, which
isn't ok, so fix that up by making both types match properly.
Reported-by: default avatarChristopher Ferris <>
Fixes: 65cab850

 ("net: Allow class-e address assignment via ifconfig ioctl")
Cc: Dave Taht <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
Signed-off-by: default avatarDavid S. Miller <>
parent 13d7f463
......@@ -268,7 +268,7 @@ struct sockaddr_in {
#define IN_MULTICAST_NET 0xe0000000
#define IN_BADCLASS(a) ((((long int) (a) ) == 0xffffffff)
#define IN_BADCLASS(a) (((long int) (a) ) == (long int)0xffffffff)
#define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment