]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Import macros IN_LINKLOCAL(), IN_PRIVATE(), IN_LOCAL_GROUP(), IN_ANY_LOCAL().
authorBruce M Simpson <bms@FreeBSD.org>
Wed, 31 Jan 2007 14:34:47 +0000 (14:34 +0000)
committerBruce M Simpson <bms@FreeBSD.org>
Wed, 31 Jan 2007 14:34:47 +0000 (14:34 +0000)
commit1976bc4af74c50de0248c3f5d6abd2249f69e6fa
tree6269edda216e21e16cd47f5cebbae728eeb340b8
parentfcacf52ec7d777613cda576c2c590e4582f7daeb
Import macros IN_LINKLOCAL(), IN_PRIVATE(), IN_LOCAL_GROUP(), IN_ANY_LOCAL().
This is not a functional change.

IN_LINKLOCAL() tests if an address falls within the IPv4 link-local prefix.
IN_PRIVATE() tests if an address falls within an RFC 1918 private prefix.
IN_LOCAL_GROUP() tests if an address falls within the statically assigned
link-local multicast scope specified in RFC 2365.
IN_ANY_LOCAL() tests for either of IN_LINKLOCAL() or IN_LOCAL_GROUP().

As with the existing macros in the FreeBSD netinet stack, comparisons
are performed in host-byte order.

See also: RFC 1918, RFC 2365, RFC 3927
Obtained from: NetBSD (dyoung@)
MFC after: 2 weeks
sys/netinet/in.h