Symbol: ip6_hdr
crypto/dist/ipsec-tools/src/racoon/dump.c
133
struct ip6_hdr ip6;
dist/pf/sbin/pfctl/pfctl_osfp.c
250
fp.fp_psize += sizeof(struct ip6_hdr) - sizeof(struct ip);
sbin/ping6/ping6.c
2081
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2086
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2101
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2124
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping6/ping6.c
2280
pr_iph(struct ip6_hdr *ip6)
sbin/ping6/ping6.c
2327
pr_retip(struct ip6_hdr *ip6, u_char *end)
sbin/ping6/ping6.c
255
static void pr_iph(struct ip6_hdr *);
sbin/ping6/ping6.c
267
static void pr_retip(struct ip6_hdr *, u_char *);
sys/altq/altq_blue.c
575
struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/altq/altq_cdnr.c
154
flowlabel = ((struct ip6_hdr *)ip)->ip6_flow;
sys/altq/altq_cdnr.c
184
struct ip6_hdr *ip6 = (struct ip6_hdr *)ip;
sys/altq/altq_red.c
1132
struct ip6_hdr *ip6;
sys/altq/altq_red.c
1165
ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/altq/altq_red.c
1198
struct ip6_hdr *ip6;
sys/altq/altq_red.c
1215
ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/altq/altq_red.c
594
struct ip6_hdr *ip6 = hdr;
sys/altq/altq_subr.c
1007
off = ((char *)ip6 - m0->m_data) + sizeof(struct ip6_hdr);
sys/altq/altq_subr.c
669
struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/altq/altq_subr.c
729
struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/altq/altq_subr.c
831
struct ip6_hdr *ip6;
sys/altq/altq_subr.c
833
ip6 = mtod(m, struct ip6_hdr *);
sys/altq/altq_subr.c
84
static int extract_ports6(struct mbuf *, struct ip6_hdr *,
sys/altq/altq_subr.c
986
extract_ports6(struct mbuf *m, struct ip6_hdr *ip6, struct flowinfo_in6 *fin6)
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1051
const struct ip6_hdr *ip6;
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1056
ip6 = (const struct ip6_hdr *)
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1106
const struct ip6_hdr *ip6;
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1156
ip6 = (const struct ip6_hdr *)(mtod(m, const char *) +
sys/arch/powerpc/ibm4xx/dev/if_emac.c
880
const struct ip6_hdr *ip6;
sys/arch/powerpc/ibm4xx/dev/if_emac.c
931
ip6 = (const struct ip6_hdr *)(mtod(m0, const char *) +
sys/arch/xen/xen/xennet_checksum.c
80
struct ip6_hdr *ip6h = NULL;
sys/dev/hyperv/if_hvn.c
1330
const struct ip6_hdr *ip6;
sys/dev/hyperv/if_hvn.c
1337
ip6 = (struct ip6_hdr *)((mtod(m, uint8_t *)) + l2hlen);
sys/dev/pci/if_jme.c
1374
struct ip6_hdr ip6;
sys/dev/pci/if_jme.c
1380
offsetof(struct ip6_hdr, ip6_plen),
sys/dev/pci/if_jme.c
1408
struct ip6_hdr *ip6 =
sys/dev/pci/if_vmx.c
3044
struct ip6_hdr *ip6;
sys/dev/pci/if_wm.c
8690
struct ip6_hdr ip6;
sys/dev/pci/if_wm.c
8695
offset + offsetof(struct ip6_hdr, ip6_plen),
sys/dev/pci/if_wm.c
8720
struct ip6_hdr *ip6 =
sys/dev/pci/if_wm.c
9358
struct ip6_hdr ip6;
sys/dev/pci/if_wm.c
9363
offset + offsetof(struct ip6_hdr, ip6_plen),
sys/dev/pci/if_wm.c
9388
struct ip6_hdr *ip6 =
sys/dev/pci/igc/if_igc.c
3281
struct ip6_hdr *ip6;
sys/dev/pci/ixgbe/ix_txrx.c
1041
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
sys/dev/pci/ixgbe/ix_txrx.c
1045
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/pci/ixgbe/ix_txrx.c
1046
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
sys/dev/pci/ixgbe/ix_txrx.c
838
struct ip6_hdr *ip6;
sys/dev/pci/ixgbe/ix_txrx.c
924
ip6 = (struct ip6_hdr *)(l3d);
sys/dev/pci/ixgbe/ix_txrx.c
925
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/pci/ixgbe/ix_txrx.c
998
struct ip6_hdr *ip6;
sys/dev/usb/if_mue.c
955
struct ip6_hdr *ip6;
sys/dev/usb/if_mue.c
989
m_copyback(m, off + offsetof(struct ip6_hdr, ip6_plen),
sys/dist/pf/net/pf.c
1662
struct ip6_hdr *h6 = NULL;
sys/dist/pf/net/pf.c
1683
len = sizeof(struct ip6_hdr) + tlen;
sys/dist/pf/net/pf.c
1756
h6 = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf.c
1764
th = (struct tcphdr *)((char *)h6 + sizeof(struct ip6_hdr));
sys/dist/pf/net/pf.c
1839
sizeof(struct ip6_hdr), tlen);
sys/dist/pf/net/pf.c
2969
hlen = sizeof(struct ip6_hdr);
sys/dist/pf/net/pf.c
4480
struct ip6_hdr h2_6;
sys/dist/pf/net/pf.c
5047
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf.c
5050
(ntohs(h->ip6_plen) + sizeof(struct ip6_hdr)) <
sys/dist/pf/net/pf.c
5456
struct ip6_hdr *ip6;
sys/dist/pf/net/pf.c
5496
if (m0->m_len < sizeof(struct ip6_hdr)) {
sys/dist/pf/net/pf.c
5501
ip6 = mtod(m0, struct ip6_hdr *);
sys/dist/pf/net/pf.c
5544
if (m0->m_len < sizeof(struct ip6_hdr)) {
sys/dist/pf/net/pf.c
5549
ip6 = mtod(m0, struct ip6_hdr *);
sys/dist/pf/net/pf.c
5671
if (m->m_len < sizeof(struct ip6_hdr))
sys/dist/pf/net/pf.c
6075
struct ip6_hdr *h = NULL; /* XXX gcc */
sys/dist/pf/net/pf.c
6134
h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf.c
6154
pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/dist/pf/net/pf.c
6157
off = ((char *)h - m->m_data) + sizeof(struct ip6_hdr);
sys/dist/pf/net/pf_norm.c
1102
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_norm.c
1148
if (sizeof(struct ip6_hdr) + IPV6_MAXPACKET < m->m_pkthdr.len)
sys/dist/pf/net/pf_norm.c
1151
off = sizeof(struct ip6_hdr);
sys/dist/pf/net/pf_norm.c
1204
if (sizeof(struct ip6_hdr) + jumbolen !=
sys/dist/pf/net/pf_norm.c
1230
if (sizeof(struct ip6_hdr) + plen > m->m_pkthdr.len)
sys/dist/pf/net/pf_norm.c
1415
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_norm.c
1519
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_osfp.c
100
struct ip6_hdr *ip6;
sys/dist/pf/net/pf_osfp.c
109
ip6 = (struct ip6_hdr *)NULL;
sys/dist/pf/net/pf_osfp.c
112
ip6 = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_osfp.c
122
pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
sys/dist/pf/net/pf_osfp.c
170
fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/dist/pf/net/pfvar.h
1825
pf_osfp_fingerprint_hdr(const struct ip *, const struct ip6_hdr *,
sys/dist/pf/net/pfvar.h
63
struct ip6_hdr;
sys/kern/uipc_mbufdebug.c
670
struct ip6_hdr ip6;
sys/net/agr/if_agrether_hash.c
127
struct ip6_hdr ip6_store;
sys/net/agr/if_agrether_hash.c
128
const struct ip6_hdr *ip6;
sys/net/ether_sw_offload.c
216
struct ip6_hdr *ip6;
sys/net/if_bridge.c
2942
struct ip6_hdr *ip6;
sys/net/if_bridge.c
2950
if (M_GET_ALIGNED_HDR(&m, struct ip6_hdr, true) != 0) {
sys/net/if_bridge.c
2958
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_gif.c
502
if (m->m_pkthdr.len < sizeof(struct ip6_hdr))
sys/net/if_ipsec.c
580
struct ip6_hdr ip6;
sys/net/if_mpls.c
635
struct ip6_hdr *ip6hdr;
sys/net/if_mpls.c
643
if (m->m_len < sizeof(struct ip6_hdr) &&
sys/net/if_mpls.c
644
(m = m_pullup(m, sizeof(struct ip6_hdr))) == 0) {
sys/net/if_mpls.c
648
ip6hdr = mtod(m, struct ip6_hdr *);
sys/net/if_mpls.c
670
struct ip6_hdr ip6h;
sys/net/if_mpls.c
674
if ((m->m_len < offset + sizeof(struct ip6_hdr)) &&
sys/net/if_mpls.c
675
(m = m_pullup(m, offset + sizeof(struct ip6_hdr))) == 0)
sys/net/if_mpls.c
678
m_copydata(m, offset, sizeof(struct ip6_hdr), &ip6h);
sys/net/if_srt.c
236
struct ip6_hdr *ip;
sys/net/if_srt.c
237
ip = mtod(m,struct ip6_hdr *);
sys/net/if_stf.c
361
struct ip6_hdr *ip6;
sys/net/if_stf.c
396
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_stf.c
587
struct ip6_hdr *ip6;
sys/net/if_stf.c
626
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_wg.c
2873
const struct ip6_hdr *ip6;
sys/net/if_wg.c
2881
ip6 = (const struct ip6_hdr *)packet;
sys/net/if_wg.c
2928
const struct ip6_hdr *ip6 = (const struct ip6_hdr *)packet;
sys/net/if_wg.c
3223
const struct ip6_hdr *ip6 =
sys/net/if_wg.c
3224
(const struct ip6_hdr *)decrypted_buf;
sys/net/if_wg.c
5745
struct ip6_hdr *ip6;
sys/net/if_wg.c
5747
KASSERT(m->m_len >= sizeof(struct ip6_hdr));
sys/net/if_wg.c
5748
ip6 = mtod(m, struct ip6_hdr *);
sys/net/lagg/if_lagg.c
888
struct ip6_hdr _ip6;
sys/net/lagg/if_lagg.c
895
const struct ip6_hdr *ip6;
sys/net/npf/npf.h
184
struct ip6_hdr * v6;
sys/net/npf/npf_ext_route.c
281
struct ip6_hdr *ip6;
sys/net/npf/npf_ext_route.c
285
ip6 = mtod(m, struct ip6_hdr *);
sys/net/npf/npf_ext_route.c
344
struct ip6_hdr *ip6 = npc->npc_ip.v6;
sys/net/npf/npf_inet.c
266
const struct ip6_hdr *ip6 = npc->npc_ip.v6;
sys/net/npf/npf_inet.c
470
struct ip6_hdr *ip6;
sys/net/npf/npf_inet.c
476
ip6 = nbuf_ensure_contig(nbuf, sizeof(struct ip6_hdr));
sys/net/npf/npf_inet.c
486
hlen = sizeof(struct ip6_hdr);
sys/net/npf/npf_sendpkt.c
117
len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/net/npf/npf_sendpkt.c
149
struct ip6_hdr *oip = npc->npc_ip.v6;
sys/net/npf/npf_sendpkt.c
152
ip6 = mtod(m, struct ip6_hdr *);
sys/net/npf/npf_sendpkt.c
191
th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
sys/net/npf/npf_sendpkt.c
229
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/net/npf/npf_sendpkt.c
73
npf_ip6_setscope(const npf_cache_t *npc, struct ip6_hdr *ip6)
sys/net/npf/npf_sendpkt.c
97
struct ip6_hdr *ip6 = NULL;
sys/net/npf/npf_socket.c
194
struct ip6_hdr *ip6 = npc->npc_ip.v6;
sys/net/pktqueue.c
310
if (__predict_false(m->m_len < sizeof(struct ip6_hdr)))
sys/net/rss_config.c
195
struct ip6_hdr *ip6;
sys/net/rss_config.c
200
KASSERT(m->m_len >= sizeof (struct ip6_hdr));
sys/net/rss_config.c
202
ip6 = mtod(m, struct ip6_hdr *);
sys/net/rss_config.c
205
hlen = sizeof(struct ip6_hdr);
sys/netinet/dccp_usrreq.c
1132
struct ip6_hdr *ip6 = NULL;
sys/netinet/dccp_usrreq.c
1281
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct dccplhdr) +
sys/netinet/dccp_usrreq.c
1284
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct dccphdr) +
sys/netinet/dccp_usrreq.c
1349
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/dccp_usrreq.c
1453
cslen = (hdrlen - sizeof(struct ip6_hdr)) + len;
sys/netinet/dccp_usrreq.c
1463
if (cslen > (hdrlen - sizeof(struct ip6_hdr)) + len)
sys/netinet/dccp_usrreq.c
1464
cslen = (hdrlen - sizeof(struct ip6_hdr)) + len;
sys/netinet/dccp_usrreq.c
1483
dh->dh_sum = in6_cksum(m, IPPROTO_DCCP, sizeof(struct ip6_hdr),
sys/netinet/dccp_usrreq.c
209
struct ip6_hdr *ip6 = NULL;
sys/netinet/dccp_usrreq.c
226
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/in_gif.c
127
const struct ip6_hdr *ip6;
sys/netinet/in_gif.c
134
ip6 = mtod(m, const struct ip6_hdr *);
sys/netinet/in_gif.c
265
struct ip6_hdr *ip6;
sys/netinet/in_gif.c
272
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/in_pcb.h
136
struct ip6_hdr in6p_ip6;
sys/netinet/ip6.h
128
__CTASSERT(sizeof(struct ip6_hdr) == 40);
sys/netinet/ip_carp.c
1145
struct ip6_hdr *ip6;
sys/netinet/ip_carp.c
1164
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
580
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
691
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
728
struct ip6_hdr *ip6;
sys/netinet/ip_carp.c
744
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_encap.c
359
struct ip6_hdr *ip6;
sys/netinet/ip_encap.c
369
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_encap.c
711
struct ip6_hdr *ip6;
sys/netinet/sctp_asconf.c
339
struct ip6_hdr *ip6;
sys/netinet/sctp_asconf.c
346
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_header.h
454
sizeof(struct ip6_hdr))
sys/netinet/sctp_header.h
458
sizeof(struct ip6_hdr))
sys/netinet/sctp_header.h
461
#define SCTP_MIN_OVERHEAD (sizeof(struct ip6_hdr) + \
sys/netinet/sctp_input.c
1072
op_err->m_data += sizeof(struct ip6_hdr);
sys/netinet/sctp_input.c
1713
struct ip6_hdr *ip6;
sys/netinet/sctp_input.c
1719
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_input.c
1942
op_err->m_data += sizeof(struct ip6_hdr);
sys/netinet/sctp_output.c
2281
struct ip6_hdr *ip6h;
sys/netinet/sctp_output.c
2291
M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netinet/sctp_output.c
2296
ip6h = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_output.c
2989
op_err->m_data += sizeof(struct ip6_hdr);
sys/netinet/sctp_output.c
3043
op_err->m_data += sizeof(struct ip6_hdr);
sys/netinet/sctp_output.c
3134
struct ip6_hdr *ip6h;
sys/netinet/sctp_output.c
3135
ip6h = mtod(in_initpkt, struct ip6_hdr *);
sys/netinet/sctp_output.c
3261
struct ip6_hdr *ip6;
sys/netinet/sctp_output.c
3445
ip6 = mtod(init_pkt, struct ip6_hdr *);
sys/netinet/sctp_output.c
5439
mtu = net->mtu - (sizeof(struct ip6_hdr) + sizeof(struct sctphdr));
sys/netinet/sctp_output.c
5687
omtu = net->mtu - (sizeof(struct ip6_hdr) + sizeof(struct sctphdr));
sys/netinet/sctp_output.c
8012
m_shutdown_comp->m_data += sizeof(struct ip6_hdr);
sys/netinet/sctp_output.c
8042
struct ip6_hdr *ip6, *ip6_out;
sys/netinet/sctp_output.c
8078
ip6 = (struct ip6_hdr *)iph;
sys/netinet/sctp_output.c
8079
mout->m_len = sizeof(struct ip6_hdr) +
sys/netinet/sctp_output.c
8082
ip6_out = mtod(mout, struct ip6_hdr *);
sys/netinet/sctp_output.c
8515
struct ip6_hdr *ip6h;
sys/netinet/sctp_output.c
8517
ip6h = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_output.c
8956
struct ip6_hdr *ip6, *ip6_out;
sys/netinet/sctp_output.c
8993
ip6 = (struct ip6_hdr *)iph;
sys/netinet/sctp_output.c
8994
ip6_out = mtod(mout, struct ip6_hdr *);
sys/netinet/sctp_output.c
9162
struct ip6_hdr *out6, *in6;
sys/netinet/sctp_output.c
9164
M_PREPEND(scm, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netinet/sctp_output.c
9168
in6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_output.c
9169
out6 = mtod(scm, struct ip6_hdr *);
sys/netinet/sctp_pcb.c
1153
struct ip6_hdr *ip6;
sys/netinet/sctp_pcb.c
1156
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_pcb.c
3944
struct ip6_hdr *ip6;
sys/netinet/sctp_pcb.c
3947
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_pcb.c
400
struct ip6_hdr *ip6;
sys/netinet/sctp_pcb.c
401
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_usrreq.c
166
ip_2_ip6_hdr(struct ip6_hdr *ip6, struct ip *ip)
sys/netinet/sctp_var.h
159
void ip_2_ip6_hdr(struct ip6_hdr *, struct ip *);
sys/netinet/sctputil.c
2929
struct ip6_hdr *ip6;
sys/netinet/sctputil.c
2932
ip6 = (struct ip6_hdr *)iph;
sys/netinet/tcp_debug.c
152
sizeof(struct ip6_hdr));
sys/netinet/tcp_debug.h
53
struct ip6_hdr ip6;
sys/netinet/tcp_input.c
1192
struct ip6_hdr *ip6;
sys/netinet/tcp_input.c
1271
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
1289
iphlen = sizeof(struct ip6_hdr);
sys/netinet/tcp_input.c
2971
struct ip6_hdr *ip6;
sys/netinet/tcp_input.c
2981
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
3019
struct ip6_hdr *ip6;
sys/netinet/tcp_input.c
3047
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
3139
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
409
static void tcp6_log_refused(const struct ip6_hdr *, const struct tcphdr *);
sys/netinet/tcp_input.c
814
struct ip6_hdr *ip6;
sys/netinet/tcp_input.c
815
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet/tcp_input.c
816
if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/netinet/tcp_input.c
821
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
853
tcp6_log_refused(const struct ip6_hdr *ip6, const struct tcphdr *th)
sys/netinet/tcp_output.c
1058
iphdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
1285
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_output.c
246
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
515
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
1280
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
1715
hdrsiz = sizeof(struct ip6_hdr);
sys/netinet/tcp_subr.c
2155
hlen = sizeof(struct ip6_hdr);
sys/netinet/tcp_subr.c
471
hlen = sizeof(struct ip6_hdr);
sys/netinet/tcp_subr.c
546
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
548
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
612
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
641
hlen = sizeof(struct ip6_hdr);
sys/netinet/tcp_subr.c
672
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
695
hlen = sizeof(struct ip6_hdr);
sys/netinet/tcp_subr.c
696
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
756
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
805
th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
sys/netinet/tcp_syncache.c
1086
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_syncache.c
1104
hlen = sizeof(struct ip6_hdr);
sys/netinet/tcp_syncache.c
1150
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_syncache.c
661
mtod(m, struct ip6_hdr *), m);
sys/netinet/tcp_vtw.h
366
struct ip6_hdr;
sys/netinet/tcp_vtw.h
369
int vtw_lookup_v6(const struct ip6_hdr *ip, const struct tcphdr *th,
sys/netinet6/frag6.c
170
struct ip6_hdr *ip6;
sys/netinet6/frag6.c
185
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
209
frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset
sys/netinet6/frag6.c
214
offsetof(struct ip6_hdr, ip6_plen));
sys/netinet6/frag6.c
310
q6->ip6q_unfrglen = offset - sizeof(struct ip6_hdr) -
sys/netinet6/frag6.c
349
struct ip6_hdr *ip6err;
sys/netinet6/frag6.c
357
ip6err = mtod(merr, struct ip6_hdr *);
sys/netinet6/frag6.c
468
next += offset - sizeof(struct ip6_hdr);
sys/netinet6/frag6.c
473
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
579
struct ip6_hdr *ip6;
sys/netinet6/frag6.c
582
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1057
sizeof(*icmp6) + sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
1071
eip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
1096
ip6cp.ip6c_ip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
1140
if (mtu < sizeof(struct ip6_hdr) + sizeof(struct ip6_frag) + 8)
sys/netinet6/icmp6.c
1227
int replylen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo);
sys/netinet6/icmp6.c
1233
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
1241
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1453
bcopy(mtod(m, void *), mtod(n, void *), sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
1454
nni6 = (struct icmp6_nodeinfo *)(mtod(n, struct ip6_hdr *) + 1);
sys/netinet6/icmp6.c
1476
sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo));
sys/netinet6/icmp6.c
1495
n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
1502
n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
1942
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2053
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
2067
if (off < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
2070
(u_long)off, (u_long)sizeof(struct ip6_hdr),
sys/netinet6/icmp6.c
2079
CTASSERT(sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) <= MHLEN);
sys/netinet6/icmp6.c
2080
if (off > sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
2082
struct ip6_hdr nip6;
sys/netinet6/icmp6.c
2084
l = off - sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
2087
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
2094
size_t l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
2101
plen = m->m_pkthdr.len - sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
2102
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2200
sizeof(struct ip6_hdr), plen);
sys/netinet6/icmp6.c
2246
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2475
struct ip6_hdr *sip6; /* m0 as struct ip6_hdr */
sys/netinet6/icmp6.c
2477
struct ip6_hdr *ip6; /* m as struct ip6_hdr */
sys/netinet6/icmp6.c
2501
sip6 = mtod(m0, struct ip6_hdr *);
sys/netinet6/icmp6.c
2534
if (maxlen < sizeof(struct ip6_hdr) + sizeof(struct nd_redirect) +
sys/netinet6/icmp6.c
2564
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2711
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
323
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
327
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
328
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
333
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
354
struct ip6_hdr *oip6, *nip6;
sys/netinet6/icmp6.c
370
if (M_UNWRITABLE(m, sizeof(struct ip6_hdr)) &&
sys/netinet6/icmp6.c
371
(m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL)
sys/netinet6/icmp6.c
373
oip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
432
oip6 = mtod(m, struct ip6_hdr *); /* adjust pointer */
sys/netinet6/icmp6.c
447
preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
456
nip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
480
icmp6_reflect(m, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
498
struct ip6_hdr *ip6, *nip6;
sys/netinet6/icmp6.c
525
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
526
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
534
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
546
if (ACCESSIBLE_POINTER(icmp6, struct ip6_hdr) == 0) {
sys/netinet6/icmp6.c
553
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
556
KASSERT(ACCESSIBLE_POINTER(icmp6, struct ip6_hdr));
sys/netinet6/icmp6.c
795
nip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/icmp6.c
796
memcpy(nip6, ip6, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
805
n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
816
icmp6_reflect(n, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
962
struct ip6_hdr *eip6;
sys/netinet6/icmp6.c
966
if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
971
sizeof(*icmp6) + sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
976
eip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
983
sizeof(struct ip6_hdr);
sys/netinet6/in6.c
2359
in6_tunnel_validate(const struct ip6_hdr *ip6, const struct in6_addr *src,
sys/netinet6/in6.h
614
struct ip6_hdr;
sys/netinet6/in6.h
615
int in6_tunnel_validate(const struct ip6_hdr *, const struct in6_addr *,
sys/netinet6/in6_cksum.c
58
const struct ip6_hdr *ip6;
sys/netinet6/in6_cksum.c
66
if (__predict_false(off < sizeof(struct ip6_hdr)))
sys/netinet6/in6_cksum.c
68
if (__predict_false(m->m_len < sizeof(struct ip6_hdr)))
sys/netinet6/in6_cksum.c
91
w = (const uint16_t *)(cp + offsetof(struct ip6_hdr, ip6_src));
sys/netinet6/in6_gif.c
137
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
152
M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netinet6/in6_gif.c
153
if (m && m->m_len < sizeof(struct ip6_hdr))
sys/netinet6/in6_gif.c
154
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/in6_gif.c
158
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
263
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
269
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
328
struct ip6_hdr *ip6x;
sys/netinet6/in6_gif.c
335
ip6x = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
357
gif_validate6(const struct ip6_hdr *ip6, struct gif_variant *var,
sys/netinet6/in6_gif.c
407
struct ip6_hdr ip6;
sys/netinet6/in6_gif.c
471
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
72
static int gif_validate6(const struct ip6_hdr *, struct gif_variant *,
sys/netinet6/in6_gif.c
92
struct ip6_hdr *ip6;
sys/netinet6/in6_l2tp.c
100
struct ip6_hdr ip6hdr; /* capsule IP header, host byte ordered */
sys/netinet6/in6_l2tp.c
193
M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netinet6/in6_l2tp.c
196
if (M_GET_ALIGNED_HDR(&m, struct ip6_hdr, false) != 0)
sys/netinet6/in6_l2tp.c
198
memcpy(mtod(m, struct ip6_hdr *), &ip6hdr, sizeof(struct ip6_hdr));
sys/netinet6/in6_offload.c
197
hdrlen + offsetof(struct ip6_hdr, ip6_plen);
sys/netinet6/in6_offload.c
207
if (__predict_true(hdrlen + sizeof(struct ip6_hdr) <= m->m_len)) {
sys/netinet6/in6_offload.c
217
plen - (l4hdroff - sizeof(struct ip6_hdr)));
sys/netinet6/in6_offload.c
58
struct ip6_hdr *iph;
sys/netinet6/in6_proto.c
263
tcp_init_common(sizeof(struct ip6_hdr));
sys/netinet6/ip6_flow.c
144
ip6flow_hash(const struct ip6_hdr *ip6)
sys/netinet6/ip6_flow.c
167
ip6flow_lookup(const struct ip6_hdr *ip6)
sys/netinet6/ip6_flow.c
258
struct ip6_hdr *ip6;
sys/netinet6/ip6_flow.c
277
if (m->m_len < sizeof(struct ip6_hdr))
sys/netinet6/ip6_flow.c
286
if (ACCESSIBLE_POINTER(mtod(m, const void *), struct ip6_hdr) == 0) {
sys/netinet6/ip6_flow.c
287
if ((m = m_copyup(m, sizeof(struct ip6_hdr),
sys/netinet6/ip6_flow.c
295
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_flow.c
559
const struct ip6_hdr *ip6;
sys/netinet6/ip6_flow.c
563
ip6 = mtod(m, const struct ip6_hdr *);
sys/netinet6/ip6_forward.c
121
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_forward.c
397
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_forward.c
75
ip6_cantforward(const struct ip6_hdr *ip6, const struct ifnet *srcifp,
sys/netinet6/ip6_input.c
1037
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
1051
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1067
struct ip6_hdr *ip6, struct mbuf *m)
sys/netinet6/ip6_input.c
1137
struct ip6_hdr *xip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1143
ext = ip6_pullexthdr(m, sizeof(struct ip6_hdr),
sys/netinet6/ip6_input.c
1174
struct ip6_hdr *xip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1175
int nxt = xip6->ip6_nxt, off = sizeof(struct ip6_hdr);
sys/netinet6/ip6_input.c
1218
KASSERT(ACCESSIBLE_POINTER(ip6e, struct ip6_hdr));
sys/netinet6/ip6_input.c
1360
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1362
if (off == sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_input.c
1363
return offsetof(struct ip6_hdr, ip6_nxt);
sys/netinet6/ip6_input.c
1364
} else if (off < sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_input.c
1371
len = sizeof(struct ip6_hdr);
sys/netinet6/ip6_input.c
139
static bool ip6_badaddr(struct ip6_hdr *);
sys/netinet6/ip6_input.c
1401
struct ip6_hdr ip6;
sys/netinet6/ip6_input.c
160
__CTASSERT(sizeof(struct ip6_hdr) == 40);
sys/netinet6/ip6_input.c
252
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
253
int hit, off = sizeof(struct ip6_hdr), nest;
sys/netinet6/ip6_input.c
304
if (M_GET_ALIGNED_HDR(&m, struct ip6_hdr, true) != 0) {
sys/netinet6/ip6_input.c
311
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
356
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_input.c
357
if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/netinet6/ip6_input.c
363
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
392
m_makewritable(&m, 0, sizeof(struct ip6_hdr), M_DONTWAIT))) {
sys/netinet6/ip6_input.c
396
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
574
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
597
IP6_EXTHDR_GET(hbh, struct ip6_hbh *, m, sizeof(struct ip6_hdr),
sys/netinet6/ip6_input.c
605
KASSERT(ACCESSIBLE_POINTER(hbh, struct ip6_hdr));
sys/netinet6/ip6_input.c
622
if (m->m_pkthdr.len - sizeof(struct ip6_hdr) < plen) {
sys/netinet6/ip6_input.c
627
if (m->m_pkthdr.len > sizeof(struct ip6_hdr) + plen) {
sys/netinet6/ip6_input.c
629
m->m_len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_input.c
630
m->m_pkthdr.len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_input.c
632
m_adj(m, sizeof(struct ip6_hdr) + plen - m->m_pkthdr.len);
sys/netinet6/ip6_input.c
672
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
778
ip6_badaddr(struct ip6_hdr *ip6)
sys/netinet6/ip6_input.c
866
sizeof(struct ip6_hdr), sizeof(struct ip6_hbh));
sys/netinet6/ip6_input.c
872
IP6_EXTHDR_GET(hbh, struct ip6_hbh *, m, sizeof(struct ip6_hdr),
sys/netinet6/ip6_input.c
878
KASSERT(ACCESSIBLE_POINTER(hbh, struct ip6_hdr));
sys/netinet6/ip6_input.c
905
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
910
const int erroff = sizeof(struct ip6_hdr) + sizeof(struct ip6_hbh);
sys/netinet6/ip6_input.c
960
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1027
ip6_mforward(struct ip6_hdr *ip6, struct ifnet *ifp, struct mbuf *m)
sys/netinet6/ip6_mroute.c
1125
if (mb0 && M_UNWRITABLE(mb0, sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1126
mb0 = m_pullup(mb0, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1161
mm = m_copym(mb0, 0, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netinet6/ip6_mroute.c
1363
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1408
mm = m_copym(m, 0, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netinet6/ip6_mroute.c
1409
if (mm && M_UNWRITABLE(mm, sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1410
mm = m_pullup(mm, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1524
phyint_send(struct ip6_hdr *ip6, struct mif6 *mifp, struct mbuf *m)
sys/netinet6/ip6_mroute.c
1542
if (mb_copy && M_UNWRITABLE(mb_copy, sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1543
mb_copy = m_pullup(mb_copy, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
160
static void phyint_send(struct ip6_hdr *, struct mif6 *, struct mbuf *);
sys/netinet6/ip6_mroute.c
1637
register_send(struct ip6_hdr *ip6, struct mif6 *mif, struct mbuf *m)
sys/netinet6/ip6_mroute.c
164
static int register_send(struct ip6_hdr *, struct mif6 *, struct mbuf *);
sys/netinet6/ip6_mroute.c
1659
mm->m_len = sizeof(struct ip6_hdr);
sys/netinet6/ip6_mroute.c
1671
mm->m_pkthdr.len = len + sizeof(struct ip6_hdr);
sys/netinet6/ip6_mroute.c
1710
struct ip6_hdr *ip6 __mrt6debugused;
sys/netinet6/ip6_mroute.c
1718
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1805
struct ip6_hdr *eip6;
sys/netinet6/ip6_mroute.c
1843
eip6 = (struct ip6_hdr *)(reghdr + 1);
sys/netinet6/ip6_output.c
1017
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
1213
if (hlen > sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_output.c
1214
n = m_copym(m0, sizeof(struct ip6_hdr),
sys/netinet6/ip6_output.c
1215
hlen - sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netinet6/ip6_output.c
134
static int ip6_handle_rthdr(struct ip6_rthdr *, struct ip6_hdr *);
sys/netinet6/ip6_output.c
141
ip6_handle_rthdr(struct ip6_rthdr *rh, struct ip6_hdr *ip6)
sys/netinet6/ip6_output.c
209
struct ip6_hdr *ip6, *mhip6;
sys/netinet6/ip6_output.c
251
M_CSUM_DATA_IPv6_SET(m->m_pkthdr.csum_data, sizeof(struct ip6_hdr));
sys/netinet6/ip6_output.c
287
unfragpartlen = optlen + sizeof(struct ip6_hdr);
sys/netinet6/ip6_output.c
3240
struct ip6_hdr *ip6;
sys/netinet6/ip6_output.c
3252
copym->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_output.c
3253
copym = m_pullup(copym, sizeof(struct ip6_hdr));
sys/netinet6/ip6_output.c
3265
ip6 = mtod(copym, struct ip6_hdr *);
sys/netinet6/ip6_output.c
3283
struct ip6_hdr *ip6;
sys/netinet6/ip6_output.c
3285
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
332
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
350
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
416
sizeof(struct ip6_hdr) + optlen);
sys/netinet6/ip6_output.c
509
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
759
int hoff = sizeof(struct ip6_hdr);
sys/netinet6/ip6_output.c
767
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
778
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
844
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
966
mhip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
988
sizeof(*ip6f) - sizeof(struct ip6_hdr)));
sys/netinet6/ip6_var.h
306
struct ip6_hdr;
sys/netinet6/ip6_var.h
307
int ip6_mforward(struct ip6_hdr *, struct ifnet *, struct mbuf *);
sys/netinet6/ip6_var.h
309
void ip6_savecontrol(struct inpcb *, struct mbuf **, struct ip6_hdr *,
sys/netinet6/ip6protosw.h
105
struct ip6_hdr *ip6c_ip6; /* ip6 header of target packet */
sys/netinet6/ip6protosw.h
80
struct ip6_hdr;
sys/netinet6/mld6.c
348
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
365
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/mld6.c
551
struct ip6_hdr *ip6 = NULL;
sys/netinet6/mld6.c
588
ip6 = mtod(mh, struct ip6_hdr *);
sys/netinet6/mld6.c
596
mldh->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6, sizeof(struct ip6_hdr),
sys/netinet6/mld6.c
639
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
659
(*mh)->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr);
sys/netinet6/mld6.c
660
(*mh)->m_len = sizeof(struct ip6_hdr);
sys/netinet6/mld6.c
661
m_align(*mh, sizeof(struct ip6_hdr));
sys/netinet6/mld6.c
664
ip6 = mtod(*mh, struct ip6_hdr *);
sys/netinet6/nd6.c
354
struct ip6_hdr *hip6;
sys/netinet6/nd6.c
362
hip6 = mtod(ln->ln_hold, struct ip6_hdr *);
sys/netinet6/nd6.c
427
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
1037
in6_cksum(m, IPPROTO_ICMPV6, sizeof(struct ip6_hdr), icmp6len);
sys/netinet6/nd6_nbr.c
104
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
133
ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */
sys/netinet6/nd6_nbr.c
408
struct ip6_hdr *ip6;
sys/netinet6/nd6_nbr.c
454
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
611
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
904
struct ip6_hdr *ip6;
sys/netinet6/nd6_nbr.c
949
m->m_pkthdr.len = m->m_len = sizeof(struct ip6_hdr) + icmp6len;
sys/netinet6/nd6_nbr.c
953
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_rtr.c
60
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
138
rip6_sbappendaddr(struct inpcb *last, struct ip6_hdr *ip6,
sys/netinet6/raw_ip6.c
168
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
270
struct ip6_hdr *ip6;
sys/netinet6/raw_ip6.c
371
struct ip6_hdr *ip6;
sys/netinet6/raw_ip6.c
430
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
486
off += sizeof(struct ip6_hdr);
sys/netinet6/sctp6_usrreq.c
114
struct ip6_hdr *ip6;
sys/netinet6/sctp6_usrreq.c
129
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
1416
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
1482
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
189
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
400
struct ip6_hdr *ip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
641
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
645
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
675
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
740
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
751
int af = AF_INET6, hlen = sizeof(struct ip6_hdr);
sys/netinet6/udp6_usrreq.c
991
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec.c
1045
struct ip6_hdr *ip6 = NULL;
sys/netipsec/ipsec.c
1046
struct ip6_hdr ip6buf;
sys/netipsec/ipsec.c
1050
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec.c
1527
clen += sizeof(struct ip6_hdr);
sys/netipsec/ipsec.c
1839
struct ip6_hdr *ip6;
sys/netipsec/ipsec.c
1844
KASSERT(m->m_len >= sizeof(struct ip6_hdr));
sys/netipsec/ipsec.c
1846
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec.c
847
if (m->m_pkthdr.len < sizeof(struct ip6_hdr)) {
sys/netipsec/ipsec_input.c
279
m_copydata(m, offsetof(struct ip6_hdr, ip6_src),
sys/netipsec/ipsec_input.c
282
m_copydata(m, offsetof(struct ip6_hdr, ip6_dst),
sys/netipsec/ipsec_input.c
457
if (*offp < sizeof(struct ip6_hdr)) {
sys/netipsec/ipsec_input.c
463
} else if (*offp == sizeof(struct ip6_hdr)) {
sys/netipsec/ipsec_input.c
464
protoff = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_input.c
467
protoff = sizeof(struct ip6_hdr);
sys/netipsec/ipsec_input.c
468
nxt = (mtod(*mp, struct ip6_hdr *))->ip6_nxt;
sys/netipsec/ipsec_input.c
511
struct ip6_hdr *ip6;
sys/netipsec/ipsec_input.c
531
if (m->m_len < sizeof(struct ip6_hdr) &&
sys/netipsec/ipsec_input.c
532
(m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/netipsec/ipsec_input.c
543
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_input.c
544
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netipsec/ipsec_netbsd.c
179
struct ip6_hdr *ip6;
sys/netipsec/ipsec_netbsd.c
259
struct ip6_hdr *ip6;
sys/netipsec/ipsec_output.c
150
struct ip6_hdr *ip6;
sys/netipsec/ipsec_output.c
175
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
176
mo = m_makespace(m, sizeof(struct ip6_hdr), hlen, &roff);
sys/netipsec/ipsec_output.c
219
if (m->m_pkthdr.len < sizeof(struct ip6_hdr)) {
sys/netipsec/ipsec_output.c
223
if (m->m_pkthdr.len - sizeof(struct ip6_hdr) > IPV6_MAXPACKET) {
sys/netipsec/ipsec_output.c
228
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
229
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netipsec/ipsec_output.c
331
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
624
i = sizeof(struct ip6_hdr);
sys/netipsec/ipsec_output.c
625
off = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_output.c
646
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
651
*i = sizeof(struct ip6_hdr);
sys/netipsec/ipsec_output.c
652
*off = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_output.c
733
struct ip6_hdr *ip6;
sys/netipsec/ipsec_output.c
757
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netipsec/ipsec_output.c
758
if ((m = m_pullup(m,sizeof(struct ip6_hdr))) == NULL) {
sys/netipsec/ipsec_output.c
763
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
1011
struct ip6_hdr *ip6;
sys/netipsec/ipsecif.c
250
const struct ip6_hdr *ip6;
sys/netipsec/ipsecif.c
260
ip6 = mtod(m, const struct ip6_hdr *);
sys/netipsec/ipsecif.c
461
ipsecif6_encap_func(struct mbuf *m, struct ip6_hdr *ip6, struct ipsec_variant *var)
sys/netipsec/ipsecif.c
521
struct ip6_hdr *ip6;
sys/netipsec/ipsecif.c
558
struct ip6_hdr *xip6;
sys/netipsec/ipsecif.c
565
xip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
576
M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netipsec/ipsecif.c
577
if (m && M_UNWRITABLE(m, sizeof(struct ip6_hdr)))
sys/netipsec/ipsecif.c
578
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netipsec/ipsecif.c
582
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
767
struct ip6_hdr *ip6;
sys/netipsec/ipsecif.c
775
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
821
struct ip6_hdr *ip6;
sys/netipsec/ipsecif.c
83
static int ipsecif6_filter6(const struct ip6_hdr *, struct ipsec_variant *,
sys/netipsec/ipsecif.c
847
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
893
struct ip6_hdr *xip6;
sys/netipsec/ipsecif.c
900
xip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
922
ipsecif6_filter6(const struct ip6_hdr *ip6, struct ipsec_variant *var,
sys/netipsec/ipsecif.h
51
int ipsecif6_encap_func(struct mbuf *, struct ip6_hdr *, struct ipsec_variant *);
sys/netipsec/xform_ah.c
297
struct ip6_hdr ip6;
sys/netipsec/xform_ah.c
416
m_copyback(m, 0, sizeof(struct ip6_hdr), &ip6);
sys/netipsec/xform_ah.c
418
ip6optlen = skip - sizeof(struct ip6_hdr);
sys/netipsec/xform_ah.c
435
m_copydata(m, sizeof(struct ip6_hdr),
sys/netipsec/xform_ah.c
441
sizeof(struct ip6_hdr);
sys/netipsec/xform_ah.c
509
m_copyback(m, sizeof(struct ip6_hdr), ip6optlen, ptr);
sys/netipsec/xform_ah.c
919
ipoffs = offsetof(struct ip6_hdr, ip6_plen);
sys/netipsec/xform_ipcomp.c
568
ipcomp->comp_nxt = mtod(m, struct ip6_hdr *)->ip6_nxt;
sys/netipsec/xform_ipcomp.c
590
mtod(m, struct ip6_hdr *)->ip6_plen =
sys/netipsec/xform_ipcomp.c
591
htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netipsec/xform_ipip.c
127
struct ip6_hdr *ip6 = NULL;
sys/netipsec/xform_ipip.c
146
hlen = sizeof(struct ip6_hdr);
sys/netipsec/xform_ipip.c
175
otos = (ntohl(mtod(m, struct ip6_hdr *)->ip6_flow) >> 20) & 0xff;
sys/netipsec/xform_ipip.c
203
hlen = sizeof(struct ip6_hdr);
sys/netipsec/xform_ipip.c
242
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/xform_ipip.c
331
struct ip6_hdr *ip6, *ip6o;
sys/netipsec/xform_ipip.c
401
offsetof(struct ip6_hdr, ip6_flow),
sys/netipsec/xform_ipip.c
434
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/xform_ipip.c
441
M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT);
sys/netipsec/xform_ipip.c
449
iphlen = sizeof(struct ip6_hdr);
sys/netipsec/xform_ipip.c
452
ip6o = mtod(m, struct ip6_hdr *);
sys/netipsec/xform_ipip.c
468
m_copydata(m, sizeof(struct ip6_hdr) +
sys/netipsec/xform_ipip.c
480
m_copydata(m, sizeof(struct ip6_hdr) +
sys/netipsec/xform_ipip.c
481
offsetof(struct ip6_hdr, ip6_flow),
usr.sbin/npf/npfctl/npf_bpf_comp.c
588
offsetof(struct ip6_hdr, ip6_src) :
usr.sbin/npf/npfctl/npf_bpf_comp.c
589
offsetof(struct ip6_hdr, ip6_dst);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
199
struct ip6_hdr *ip6;
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
204
ip6 = mtod(m, struct ip6_hdr *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
210
size = sizeof(struct ip6_hdr);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
237
mbuf_return_hdrs6(struct mbuf *m, struct ip6_hdr **ip6)
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
239
struct ip6_hdr *ip6hdr = mtod(m, struct ip6_hdr *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
267
struct ip6_hdr *ip6;
usr.sbin/npf/npftest/libnpftest/npf_test.h
111
void * mbuf_return_hdrs6(struct mbuf *, struct ip6_hdr **);
usr.sbin/route6d/route6d.c
698
maxrte = (IFMINMTU - sizeof(struct ip6_hdr) -
usr.sbin/route6d/route6d.c
743
maxrte = (ifcp->ifc_mtu - sizeof(struct ip6_hdr) -
usr.sbin/traceroute6/traceroute6.c
1031
get_udphdr(struct ip6_hdr *ip6, u_char *lim)
usr.sbin/traceroute6/traceroute6.c
1040
cp += sizeof(struct ip6_hdr);
usr.sbin/traceroute6/traceroute6.c
319
static struct udphdr *get_udphdr(struct ip6_hdr *, u_char *);
usr.sbin/traceroute6/traceroute6.c
975
struct ip6_hdr *hip;
usr.sbin/traceroute6/traceroute6.c
978
hip = (struct ip6_hdr *)(icp + 1);
usr.sbin/trpt/trpt.c
390
struct ip6_hdr *ip6 = NULL;
usr.sbin/trpt/trpt.c
407
ip6 = (struct ip6_hdr *)packet;