10 #ifndef __INET_IPV6_H__ 11 #define __INET_IPV6_H__ 15 #define IPv6_ADDR_SIZE 16 17 #define IPv6_HDR_SIZE 40 18 #define IPv6_FRAGMENT_HDR_SIZE 8 61 guint8 ip6r0_reserved;
62 guint8 ip6r0_slmap[3];
75 #define IP6F_OFF_MASK 0xfff8 76 #define IP6F_RESERVED_MASK 0x0006 77 #define IP6F_MORE_FRAG 0x0001 84 static inline gboolean in6_addr_is_linklocal(
const ws_in6_addr *a)
86 return (a->bytes[0] == 0xfe) && ((a->bytes[1] & 0xc0) == 0x80);
89 static inline gboolean in6_addr_is_sitelocal(
const ws_in6_addr *a)
91 return (a->bytes[0] == 0xfe) && ((a->bytes[1] & 0xc0) == 0xc0);
97 static inline gboolean in6_addr_is_multicast(
const ws_in6_addr *a)
99 return a->bytes[0] == 0xff;
Definition: inet_ipv6.h:47
Definition: inet_ipv6.h:20
Definition: inet_ipv6.h:41
Definition: inet_ipv6.h:56
Definition: inet_ipv6.h:68
Definition: inet_ipv6.h:28