9 #include <netinet/in.h>
14 uint32_t ip6_un1_flow;
15 uint16_t ip6_un1_plen;
21 struct in6_addr ip6_src;
22 struct in6_addr ip6_dst;
25 #define ip6_vfc ip6_ctlun.ip6_un2_vfc
26 #define ip6_flow ip6_ctlun.ip6_un1.ip6_un1_flow
27 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen
28 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt
29 #define ip6_hlim ip6_ctlun.ip6_un1.ip6_un1_hlim
30 #define ip6_hops ip6_ctlun.ip6_un1.ip6_un1_hlim
58 uint8_t ip6r0_segleft;
59 uint8_t ip6r0_reserved;
60 uint8_t ip6r0_slmap[3];
61 struct in6_addr ip6r0_addr[];
66 uint8_t ip6f_reserved;
71 #if __BYTE_ORDER == __BIG_ENDIAN
72 #define IP6F_OFF_MASK 0xfff8
73 #define IP6F_RESERVED_MASK 0x0006
74 #define IP6F_MORE_FRAG 0x0001
76 #define IP6F_OFF_MASK 0xf8ff
77 #define IP6F_RESERVED_MASK 0x0600
78 #define IP6F_MORE_FRAG 0x0100
86 #define IP6OPT_TYPE(o) ((o) & 0xc0)
87 #define IP6OPT_TYPE_SKIP 0x00
88 #define IP6OPT_TYPE_DISCARD 0x40
89 #define IP6OPT_TYPE_FORCEICMP 0x80
90 #define IP6OPT_TYPE_ICMP 0xc0
91 #define IP6OPT_TYPE_MUTABLE 0x20
96 #define IP6OPT_JUMBO 0xc2
97 #define IP6OPT_NSAP_ADDR 0xc3
98 #define IP6OPT_TUNNEL_LIMIT 0x04
99 #define IP6OPT_ROUTER_ALERT 0x05
101 struct ip6_opt_jumbo {
104 uint8_t ip6oj_jumbo_len[4];
106 #define IP6OPT_JUMBO_LEN 6
108 struct ip6_opt_nsap {
111 uint8_t ip6on_src_nsap_len;
112 uint8_t ip6on_dst_nsap_len;
115 struct ip6_opt_tunnel {
118 uint8_t ip6ot_encap_limit;
121 struct ip6_opt_router {
124 uint8_t ip6or_value[2];
127 #if __BYTE_ORDER == __BIG_ENDIAN
128 #define IP6_ALERT_MLD 0x0000
129 #define IP6_ALERT_RSVP 0x0001
130 #define IP6_ALERT_AN 0x0002
132 #define IP6_ALERT_MLD 0x0000
133 #define IP6_ALERT_RSVP 0x0100
134 #define IP6_ALERT_AN 0x0200