]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Create ipv4_is_<type>(__be32 addr) functions
authorJoe Perches <joe@perches.com>
Sun, 16 Dec 2007 21:42:49 +0000 (13:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:13 +0000 (14:58 -0800)
commit62120e0dacf09fd420b1a494d3efd4f441ae07e3
tree23921cc424e502855f21da2e8b7259cc1fea48b7
parent60b47b6e121414973499b8b1fbf6a9def95cc502
[IPV4]: Create ipv4_is_<type>(__be32 addr) functions

Change IPV4 specific macros LOOPBACK MULTICAST LOCAL_MCAST BADCLASS
and ZERONET macros to inline functions ipv4_is_<type>(__be32 addr)

Adds type safety and arguably some readability.

Changes since last submission:

Removed ipv4_addr_octets function
Used hex constants
Converted recently added rfc3330 macros

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/in.h