sbin/ping6/ping6.c
2093
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2098
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2113
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2132
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2288
pr_iph(struct ip6_hdr *ip6)
sbin/ping6/ping6.c
2335
pr_retip(struct ip6_hdr *ip6, u_char *end)
sbin/ping6/ping6.c
240
void pr_iph(struct ip6_hdr *);
sbin/ping6/ping6.c
252
void pr_retip(struct ip6_hdr *, u_char *);
sys/dev/netif/oce/oce_if.c
1029
struct ip6_hdr *ip6;
sys/dev/netif/oce/oce_if.c
1068
ip6 = (struct ip6_hdr *)(m->m_data + ehdrlen);
sys/dev/netif/oce/oce_if.c
1071
th = (struct tcphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/dev/netif/oce/oce_if.c
1073
total_len = ehdrlen + sizeof(struct ip6_hdr) + (th->th_off << 2);
sys/dev/netif/oce/oce_if.c
2175
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/dev/netif/oce/oce_if.c
2180
m->m_data += sizeof(struct ip6_hdr);
sys/dev/virtual/virtio/net/if_vtnet.c
1882
struct ip6_hdr *ip6;
sys/dev/virtual/virtio/net/if_vtnet.c
1924
if (m->m_len < ip_offset + sizeof(struct ip6_hdr)) {
sys/dev/virtual/virtio/net/if_vtnet.c
1925
m = m_pullup(m, ip_offset + sizeof(struct ip6_hdr));
sys/dev/virtual/virtio/net/if_vtnet.c
1930
ip6 = (struct ip6_hdr *)(mtod(m, uint8_t *) + ip_offset);
sys/dev/virtual/virtio/net/if_vtnet.c
1937
csum_start = ip_offset + sizeof(struct ip6_hdr);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2743
struct ip6_hdr *ip6 = NULL;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2773
offset + sizeof(struct ip6_hdr))) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2774
m = m_pullup(m, offset + sizeof(struct ip6_hdr));
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2779
ip6 = (struct ip6_hdr *)(mtod(m, uint8_t *) + offset);
sys/net/altq/altq_red.c
484
struct ip6_hdr *ip6 = hdr;
sys/net/altq/altq_subr.c
746
struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/net/altq/altq_subr.c
807
struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/net/bridge/if_bridge.c
4315
struct ip6_hdr *ip6;
sys/net/bridge/if_bridge.c
4326
if ((m = m_copyup(m, sizeof(struct ip6_hdr),
sys/net/bridge/if_bridge.c
4335
if (__predict_false(m->m_len < sizeof(struct ip6_hdr))) {
sys/net/bridge/if_bridge.c
4337
if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/net/bridge/if_bridge.c
4344
ip6 = mtod(m, struct ip6_hdr *);
sys/net/gif/if_gif.c
315
if (m->m_pkthdr.len < sizeof(struct ip6_hdr))
sys/net/ip6fw/ip6_fw.c
138
static int ip6opts_match (struct ip6_hdr **ip6, struct ip6_fw *f,
sys/net/ip6fw/ip6_fw.c
145
static void ip6fw_report (struct ip6_fw *f, struct ip6_hdr *ip6,
sys/net/ip6fw/ip6_fw.c
148
static int ip6_fw_chk (struct ip6_hdr **pip6,
sys/net/ip6fw/ip6_fw.c
223
is_icmp6_query(struct ip6_hdr *ip6, int off)
sys/net/ip6fw/ip6_fw.c
242
ip6opts_match(struct ip6_hdr **pip6, struct ip6_fw *f, struct mbuf **m,
sys/net/ip6fw/ip6_fw.c
246
struct ip6_hdr *ip6 = *pip6;
sys/net/ip6fw/ip6_fw.c
254
*off = sizeof(struct ip6_hdr);
sys/net/ip6fw/ip6_fw.c
255
len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
sys/net/ip6fw/ip6_fw.c
357
ip6fw_report(struct ip6_fw *f, struct ip6_hdr *ip6,
sys/net/ip6fw/ip6_fw.c
498
ip6_fw_chk(struct ip6_hdr **pip6,
sys/net/ip6fw/ip6_fw.c
503
struct ip6_hdr *ip6 = *pip6;
sys/net/ip6fw/ip6_fw.c
506
int off = sizeof(struct ip6_hdr), nxt = ip6->ip6_nxt;
sys/net/ip6fw/ip6_fw.c
604
*pip6 = ip6 = mtod(*m, struct ip6_hdr *); \
sys/net/ip6fw/ip6_fw.c
778
struct ip6_hdr ip6;
sys/net/ip6fw/ip6_fw.h
225
struct ip6_hdr;
sys/net/ip6fw/ip6_fw.h
226
typedef int ip6_fw_chk_t(struct ip6_hdr **, struct ifnet *, u_short *,
sys/net/lagg/if_lagg.c
1656
const struct ip6_hdr *ip6;
sys/net/lagg/if_lagg.c
1664
struct ip6_hdr ip6;
sys/net/pf/pf.c
2137
struct ip6_hdr *h6 = NULL;
sys/net/pf/pf.c
2157
len = sizeof(struct ip6_hdr) + tlen;
sys/net/pf/pf.c
2209
h6 = mtod(m, struct ip6_hdr *);
sys/net/pf/pf.c
2217
th = (struct tcphdr *)((caddr_t)h6 + sizeof(struct ip6_hdr));
sys/net/pf/pf.c
2284
sizeof(struct ip6_hdr), tlen);
sys/net/pf/pf.c
3607
hlen = sizeof(struct ip6_hdr);
sys/net/pf/pf.c
4028
struct ip6_hdr *h6;
sys/net/pf/pf.c
4037
h6 = mtod(m, struct ip6_hdr *);
sys/net/pf/pf.c
5294
struct ip6_hdr h2_6;
sys/net/pf/pf.c
5898
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/net/pf/pf.c
5901
(ntohs(h->ip6_plen) + sizeof(struct ip6_hdr)) <
sys/net/pf/pf.c
6237
struct ip6_hdr *ip6;
sys/net/pf/pf.c
6266
if (m0->m_len < sizeof(struct ip6_hdr)) {
sys/net/pf/pf.c
6271
ip6 = mtod(m0, struct ip6_hdr *);
sys/net/pf/pf.c
6322
if (m0->m_len < sizeof(struct ip6_hdr)) {
sys/net/pf/pf.c
6327
ip6 = mtod(m0, struct ip6_hdr *);
sys/net/pf/pf.c
6438
if (m->m_len < sizeof(struct ip6_hdr))
sys/net/pf/pf.c
6860
struct ip6_hdr *h = NULL;
sys/net/pf/pf.c
6914
h = mtod(m, struct ip6_hdr *);
sys/net/pf/pf.c
6938
pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/net/pf/pf.c
6941
off = ((caddr_t)h - m->m_data) + sizeof(struct ip6_hdr);
sys/net/pf/pf_norm.c
1119
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/net/pf/pf_norm.c
1165
if (sizeof(struct ip6_hdr) + IPV6_MAXPACKET < m->m_pkthdr.len)
sys/net/pf/pf_norm.c
1168
off = sizeof(struct ip6_hdr);
sys/net/pf/pf_norm.c
1221
if (sizeof(struct ip6_hdr) + jumbolen !=
sys/net/pf/pf_norm.c
1247
if (sizeof(struct ip6_hdr) + plen > m->m_pkthdr.len)
sys/net/pf/pf_norm.c
1432
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/net/pf/pf_norm.c
1539
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/net/pf/pf_osfp.c
104
ip6 = mtod(m, struct ip6_hdr *);
sys/net/pf/pf_osfp.c
114
pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
sys/net/pf/pf_osfp.c
162
fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/net/pf/pf_osfp.c
92
struct ip6_hdr *ip6;
sys/net/pf/pfvar.h
2018
pf_osfp_fingerprint_hdr(const struct ip *, const struct ip6_hdr *,
sys/net/pf/pfvar.h
62
struct ip6_hdr;
sys/net/stf/if_stf.c
339
struct ip6_hdr *ip6;
sys/net/stf/if_stf.c
371
ip6 = mtod(m, struct ip6_hdr *);
sys/net/stf/if_stf.c
548
struct ip6_hdr *ip6;
sys/net/stf/if_stf.c
591
ip6 = mtod(m, struct ip6_hdr *);
sys/net/wg/if_wg.c
1810
const struct ip6_hdr *ip6;
sys/net/wg/if_wg.c
1814
ip6 = mtod(*m, const struct ip6_hdr *);
sys/net/wg/if_wg.c
1913
const struct ip6_hdr *ip6 = mtod(m, const struct ip6_hdr *);
sys/net/wg/if_wg.c
1915
len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
sys/net/wg/if_wg.c
2333
(void *)&mtod(m, struct ip6_hdr *)->ip6_dst));
sys/netgraph/fec/ng_fec.c
884
struct ip6_hdr *ip6;
sys/netgraph/fec/ng_fec.c
902
ip6 = (struct ip6_hdr *)(mtod(m, char *) +
sys/netgraph7/ng_fec.c
1005
struct ip6_hdr *ip6;
sys/netgraph7/ng_fec.c
1023
ip6 = (struct ip6_hdr *)(mtod(m, char *) +
sys/netinet/in_gif.c
134
struct ip6_hdr *ip6;
sys/netinet/in_gif.c
141
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/in_gif.c
267
struct ip6_hdr *ip6;
sys/netinet/in_gif.c
275
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
1035
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
1423
struct ip6_hdr *ip6;
sys/netinet/ip_carp.c
1441
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_encap.c
249
struct ip6_hdr *ip6;
sys/netinet/ip_encap.c
255
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_debug.c
165
isipv6 ? ((struct ip6_hdr *)ipgen)->ip6_plen :
sys/netinet/tcp_debug.h
66
struct ip6_hdr ip6;
sys/netinet/tcp_input.c
2965
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_input.c
3178
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_input.c
627
offsetof(struct ip6_hdr, ip6_dst));
sys/netinet/tcp_input.c
662
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_input.c
693
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
772
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_output.c
1073
sizeof(struct ip6_hdr),
sys/netinet/tcp_output.c
190
struct ip6_hdr *ip6;
sys/netinet/tcp_output.c
716
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
963
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
1018
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
1556
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
1807
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
1822
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
1847
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
2214
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
2241
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
2302
th = (struct tcphdr *)((u_char *)ip6 + sizeof(struct ip6_hdr));
sys/netinet/tcp_subr.c
2303
doff = sizeof(struct ip6_hdr) + sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_subr.c
416
#define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr))
sys/netinet/tcp_subr.c
471
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
473
ip6 = (struct ip6_hdr *)ip_ptr;
sys/netinet/tcp_subr.c
568
struct ip6_hdr *ip6 = ipgen;
sys/netinet/tcp_subr.c
614
bcopy(ip6, mtod(m, caddr_t), sizeof(struct ip6_hdr));
sys/netinet/tcp_subr.c
615
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
655
tlen += sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
677
sizeof(struct ip6_hdr),
sys/netinet/tcp_subr.c
678
tlen - sizeof(struct ip6_hdr));
sys/netinet/tcp_syncache.c
1137
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_syncache.c
1148
(sizeof(struct ip6_hdr) + sizeof(struct tcphdr));
sys/netinet/tcp_syncache.c
1151
hlen = sizeof(struct ip6_hdr);
sys/netinet/tcp_syncache.c
1202
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
157
struct ip6_hdr *ip6;
sys/netinet6/frag6.c
170
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
222
offsetof(struct ip6_hdr, ip6_plen));
sys/netinet6/frag6.c
295
q6->ip6q_unfrglen = offset - sizeof(struct ip6_hdr)
sys/netinet6/frag6.c
305
frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
sys/netinet6/frag6.c
335
struct ip6_hdr *ip6err;
sys/netinet6/frag6.c
343
ip6err = mtod(merr, struct ip6_hdr *);
sys/netinet6/frag6.c
462
if ((u_int)next + (u_int)offset - sizeof(struct ip6_hdr) >
sys/netinet6/frag6.c
469
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
470
ip6->ip6_plen = htons((u_short)next + offset - sizeof(struct ip6_hdr));
sys/netinet6/frag6.c
564
struct ip6_hdr *ip6;
sys/netinet6/frag6.c
567
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1032
ip6cp.ip6c_ip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
1112
int replylen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo);
sys/netinet6/icmp6.c
1118
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
1123
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1335
bcopy(mtod(m, caddr_t), mtod(n, caddr_t), sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
1336
nni6 = (struct icmp6_nodeinfo *)(mtod(n, struct ip6_hdr *) + 1);
sys/netinet6/icmp6.c
1358
sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
1379
sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo);
sys/netinet6/icmp6.c
1383
n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
1815
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1916
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
1930
if (off < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
1933
(u_long)off, (u_long)sizeof(struct ip6_hdr),
sys/netinet6/icmp6.c
1943
if (sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) > MHLEN)
sys/netinet6/icmp6.c
1946
if (off > sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
1948
struct ip6_hdr nip6;
sys/netinet6/icmp6.c
1950
l = off - sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
1953
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
1961
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
1967
plen = m->m_pkthdr.len - sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
1968
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2094
sizeof(struct ip6_hdr), plen);
sys/netinet6/icmp6.c
2160
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2362
struct ip6_hdr *sip6; /* m0 as struct ip6_hdr */
sys/netinet6/icmp6.c
2364
struct ip6_hdr *ip6; /* m as struct ip6_hdr */
sys/netinet6/icmp6.c
2387
sip6 = mtod(m0, struct ip6_hdr *);
sys/netinet6/icmp6.c
2419
if (maxlen < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) +
sys/netinet6/icmp6.c
2445
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
252
struct ip6_hdr *oip6, *nip6;
sys/netinet6/icmp6.c
2608
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
271
IP6_EXTHDR_CHECK(m, 0, sizeof(struct ip6_hdr), );
sys/netinet6/icmp6.c
273
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
274
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
279
oip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
340
oip6 = mtod(m, struct ip6_hdr *); /* adjust pointer */
sys/netinet6/icmp6.c
355
preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
364
nip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
386
icmp6_reflect(m, sizeof(struct ip6_hdr)); /* header order: IPv6 - ICMPv6 */
sys/netinet6/icmp6.c
404
struct ip6_hdr *ip6, *nip6;
sys/netinet6/icmp6.c
420
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
563
nip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/icmp6.c
564
bcopy(ip6, nip6, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
567
noff = sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
579
nip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/icmp6.c
652
noff = sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
690
nip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/icmp6.c
691
bcopy(ip6, nip6, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
697
noff = sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
698
n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
849
struct ip6_hdr *eip6;
sys/netinet6/icmp6.c
853
if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
859
sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr),
sys/netinet6/icmp6.c
864
sizeof(*icmp6) + sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
870
eip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
876
sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
981
sizeof(*icmp6) + sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
988
eip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/in6_cksum.c
126
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_cksum.c
97
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
104
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
135
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
142
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
157
M_PREPEND(m, sizeof(struct ip6_hdr), M_NOWAIT);
sys/netinet6/in6_gif.c
158
if (m && m->m_len < sizeof(struct ip6_hdr))
sys/netinet6/in6_gif.c
159
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/in6_gif.c
165
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
217
sizeof(struct ip6_hdr);
sys/netinet6/in6_gif.c
238
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
242
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
279
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
286
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
308
gif_validate6(const struct ip6_hdr *ip6, struct gif_softc *sc,
sys/netinet6/in6_gif.c
362
struct ip6_hdr ip6;
sys/netinet6/in6_gif.c
74
static int gif_validate6(const struct ip6_hdr *, struct gif_softc *,
sys/netinet6/in6_pcb.c
956
struct ip6_hdr *ip;
sys/netinet6/in6_pcb.c
958
ip = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_forward.c
335
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_forward.c
91
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1014
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
1028
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1053
ip6_savecontrol(struct inpcb *in6p, struct mbuf **mp, struct ip6_hdr *ip6,
sys/netinet6/ip6_input.c
1128
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1140
ext = ip6_pullexthdr(m, sizeof(struct ip6_hdr),
sys/netinet6/ip6_input.c
1204
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1205
int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr);
sys/netinet6/ip6_input.c
1421
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1423
if (off == sizeof(struct ip6_hdr))
sys/netinet6/ip6_input.c
1430
len = sizeof(struct ip6_hdr);
sys/netinet6/ip6_input.c
1460
struct ip6_hdr ip6;
sys/netinet6/ip6_input.c
204
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
205
int off = sizeof(struct ip6_hdr), nest;
sys/netinet6/ip6_input.c
262
IP6_EXTHDR_CHECK_VOIDRET(m, 0, sizeof(struct ip6_hdr));
sys/netinet6/ip6_input.c
265
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_input.c
268
if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/netinet6/ip6_input.c
275
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
298
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
565
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
590
IP6_EXTHDR_GET(hbh, struct ip6_hbh *, m, sizeof(struct ip6_hdr),
sys/netinet6/ip6_input.c
628
if (m->m_pkthdr.len - sizeof(struct ip6_hdr) < plen) {
sys/netinet6/ip6_input.c
633
if (m->m_pkthdr.len > sizeof(struct ip6_hdr) + plen) {
sys/netinet6/ip6_input.c
635
m->m_len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_input.c
636
m->m_pkthdr.len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_input.c
638
m_adj(m, sizeof(struct ip6_hdr) + plen - m->m_pkthdr.len);
sys/netinet6/ip6_input.c
664
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
843
sizeof(struct ip6_hdr), sizeof(struct ip6_hbh));
sys/netinet6/ip6_input.c
849
IP6_EXTHDR_GET(hbh, struct ip6_hbh *, m, sizeof(struct ip6_hdr),
sys/netinet6/ip6_input.c
882
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
887
const int erroff = sizeof(struct ip6_hdr) + sizeof(struct ip6_hbh);
sys/netinet6/ip6_input.c
937
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1041
(M_HASCL(mb0) || mb0->m_len < sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1042
mb0 = m_pullup(mb0, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1079
mm = m_copym(mb0, 0, sizeof(struct ip6_hdr), M_NOWAIT);
sys/netinet6/ip6_mroute.c
125
static void phyint_send (struct ip6_hdr *, struct mif6 *, struct mbuf *);
sys/netinet6/ip6_mroute.c
1283
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
129
static int register_send(struct ip6_hdr *, struct mif6 *, struct mbuf *);
sys/netinet6/ip6_mroute.c
1340
mm = m_copym(m, 0, sizeof(struct ip6_hdr),
sys/netinet6/ip6_mroute.c
1344
mm->m_len < sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1345
mm = m_pullup(mm, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1458
phyint_send(struct ip6_hdr *ip6, struct mif6 *mifp, struct mbuf *m)
sys/netinet6/ip6_mroute.c
1477
(M_HASCL(mb_copy) || mb_copy->m_len < sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1478
mb_copy = m_pullup(mb_copy, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1566
register_send(struct ip6_hdr *ip6, struct mif6 *mif, struct mbuf *m)
sys/netinet6/ip6_mroute.c
1586
mm->m_len = sizeof(struct ip6_hdr);
sys/netinet6/ip6_mroute.c
1599
mm->m_pkthdr.len = len + sizeof(struct ip6_hdr);
sys/netinet6/ip6_mroute.c
1638
struct ip6_hdr *ip6;
sys/netinet6/ip6_mroute.c
1646
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1679
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1739
struct ip6_hdr *eip6;
sys/netinet6/ip6_mroute.c
1776
eip6 = (struct ip6_hdr *) (reghdr + 1);
sys/netinet6/ip6_mroute.c
945
ip6_mforward(struct ip6_hdr *ip6, struct ifnet *ifp, struct mbuf *m)
sys/netinet6/ip6_output.c
1010
if (hlen > sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_output.c
1011
n = m_copym(m0, sizeof(struct ip6_hdr),
sys/netinet6/ip6_output.c
1012
hlen - sizeof(struct ip6_hdr), M_NOWAIT);
sys/netinet6/ip6_output.c
144
struct ip6_hdr *ip6, *mhip6;
sys/netinet6/ip6_output.c
183
unfragpartlen = optlen + sizeof(struct ip6_hdr);
sys/netinet6/ip6_output.c
203
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
221
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
3018
struct ip6_hdr *ip6;
sys/netinet6/ip6_output.c
3030
copym->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_output.c
3031
copym = m_pullup(copym, sizeof(struct ip6_hdr));
sys/netinet6/ip6_output.c
3043
ip6 = mtod(copym, struct ip6_hdr *);
sys/netinet6/ip6_output.c
3065
if (m->m_len <= sizeof(struct ip6_hdr)) /* no payload */
sys/netinet6/ip6_output.c
3071
mh->m_len = sizeof(struct ip6_hdr);
sys/netinet6/ip6_output.c
3073
MH_ALIGN(mh, sizeof(struct ip6_hdr));
sys/netinet6/ip6_output.c
3074
bcopy(mtod(m, caddr_t), mtod(mh, caddr_t), sizeof(struct ip6_hdr));
sys/netinet6/ip6_output.c
3075
m->m_data += sizeof(struct ip6_hdr);
sys/netinet6/ip6_output.c
3076
m->m_len -= sizeof(struct ip6_hdr);
sys/netinet6/ip6_output.c
662
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
723
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
810
mhip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
824
sizeof(*ip6f) - sizeof(struct ip6_hdr)));
sys/netinet6/ip6_var.h
336
struct ip6_hdr;
sys/netinet6/ip6_var.h
355
int ip6_mforward (struct ip6_hdr *, struct ifnet *, struct mbuf *);
sys/netinet6/ip6_var.h
358
void ip6_savecontrol (struct inpcb *, struct mbuf **, struct ip6_hdr *,
sys/netinet6/ip6protosw.h
111
struct ip6_hdr *ip6c_ip6; /* ip6 header of target packet */
sys/netinet6/ip6protosw.h
85
struct ip6_hdr;
sys/netinet6/mld6.c
181
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
203
ip6 = mtod(m, struct ip6_hdr *); /* in case mpullup */
sys/netinet6/mld6.c
411
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
441
mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr);
sys/netinet6/mld6.c
442
mh->m_len = sizeof(struct ip6_hdr);
sys/netinet6/mld6.c
443
MH_ALIGN(mh, sizeof(struct ip6_hdr));
sys/netinet6/mld6.c
446
ip6 = mtod(mh, struct ip6_hdr *);
sys/netinet6/mld6.c
468
mldh->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6, sizeof(struct ip6_hdr),
sys/netinet6/nd6_nbr.c
1043
in6_cksum(m, IPPROTO_ICMPV6, sizeof(struct ip6_hdr), icmp6len);
sys/netinet6/nd6_nbr.c
106
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
138
ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */
sys/netinet6/nd6_nbr.c
442
struct ip6_hdr *ip6;
sys/netinet6/nd6_nbr.c
481
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
514
struct ip6_hdr *hip6; /* hold ip6 */
sys/netinet6/nd6_nbr.c
518
hip6 = mtod(ln->ln_hold, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
604
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
925
struct ip6_hdr *ip6;
sys/netinet6/nd6_nbr.c
957
m->m_pkthdr.len = m->m_len = sizeof(struct ip6_hdr) + icmp6len;
sys/netinet6/nd6_nbr.c
961
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_rtr.c
115
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_rtr.c
204
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
125
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
275
struct ip6_hdr *ip6;
sys/netinet6/raw_ip6.c
327
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
407
off += sizeof(struct ip6_hdr);
sys/netinet6/route6.c
55
struct ip6_hdr *ip6;
sys/netinet6/route6.c
62
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/route6.c
65
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/tcp6_var.h
76
struct ip6_hdr;
sys/netinet6/udp6_output.c
118
struct ip6_hdr *ip6;
sys/netinet6/udp6_output.c
125
int hlen = sizeof(struct ip6_hdr);
sys/netinet6/udp6_output.c
235
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_output.c
250
sizeof(struct ip6_hdr), plen)) == 0) {
sys/netinet6/udp6_usrreq.c
139
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
151
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
390
struct ip6_hdr *ip6;
sys/netproto/802_11/wlan/ieee80211_output.c
1164
offsetof(struct ip6_hdr, ip6_flow), sizeof(flow), &flow);
usr.sbin/pfctl/pfctl_osfp.c
249
fp.fp_psize += sizeof(struct ip6_hdr) - sizeof(struct ip);
usr.sbin/ppp/ip.c
213
const struct ip6_hdr *pip6 = (const struct ip6_hdr *)packet;
usr.sbin/ppp/ip.c
559
const struct ip6_hdr *pip6 = (const struct ip6_hdr *)packet;
usr.sbin/route6d/route6d.c
719
maxrte = (IFMINMTU - sizeof(struct ip6_hdr) -
usr.sbin/route6d/route6d.c
764
maxrte = (ifcp->ifc_mtu - sizeof(struct ip6_hdr) -
usr.sbin/rtadvd/rtadvd.c
720
struct ip6_hdr *ip;
usr.sbin/rtadvd/rtadvd.c
784
if ((size_t)i < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) {
usr.sbin/rtadvd/rtadvd.c
790
ip = (struct ip6_hdr *)rcvmhdr.msg_iov[0].iov_base;
usr.sbin/traceroute6/traceroute6.c
1041
struct ip6_hdr *hip;
usr.sbin/traceroute6/traceroute6.c
1044
hip = (struct ip6_hdr *)(icp + 1);
usr.sbin/traceroute6/traceroute6.c
1108
get_uphdr(struct ip6_hdr *ip6, u_char *lim)
usr.sbin/traceroute6/traceroute6.c
1118
cp += sizeof(struct ip6_hdr);
usr.sbin/traceroute6/traceroute6.c
296
static void *get_uphdr(struct ip6_hdr *, u_char *);
usr.sbin/traceroute6/traceroute6.c
980
struct ip6_hdr *ip;
usr.sbin/traceroute6/traceroute6.c
984
ip = (struct ip6_hdr *) buf;
usr.sbin/traceroute6/traceroute6.c
985
hlen = sizeof(struct ip6_hdr);
usr.sbin/trpt/trpt.c
307
struct ip6_hdr *ip6 = NULL;
usr.sbin/trpt/trpt.c
321
ip6 = (struct ip6_hdr *)ip;