ndk: minor update to <netinet/...> headers.
This patch contains a minor update to the netinet headers from the C library. Most of the changes come from later platform release, but can be safely back-ported to previous API levels since they don't change the ABI: - <netinet/icmp6.h>, <netinet/ip6.h>: new headers - <netinet/in.h>: now always include <linux/ipv6.h> by default - <netinet/in6.h>: add macros: IN6_IS_ADDR_ULA, IN6ADDR_LOOPBACK_INIT - <netinet/ip.h>: add macro: IPTOS_MINCOST - <net/if_ether.h>: always include <sys/types.h> by default. Change-Id: Icaf38205389d2b49f0e9235c07df752da01a0167
This commit is contained in:
@@ -60,6 +60,10 @@
|
||||
#define IN6_IS_ADDR_SITELOCAL(a) \
|
||||
(((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0))
|
||||
|
||||
/* RFC 4193. */
|
||||
#define IN6_IS_ADDR_ULA(a) \
|
||||
(((a)->s6_addr[0] & 0xfe) == 0xfc)
|
||||
|
||||
#define IN6_IS_ADDR_MULTICAST(a) \
|
||||
(((__const uint8_t *) (a))[0] == 0xff)
|
||||
|
||||
@@ -99,6 +103,7 @@
|
||||
#define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP
|
||||
|
||||
#define IN6ADDR_ANY_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}}
|
||||
#define IN6ADDR_LOOPBACK_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}}}
|
||||
|
||||
#define ipv6mr_interface ipv6mr_ifindex
|
||||
|
||||
|
||||
Reference in New Issue
Block a user