Symbol: ip6_hdr
sbin/pfctl/pfctl_osfp.c
244
fp.fp_psize += sizeof(struct ip6_hdr) - sizeof(struct ip);
sbin/ping/ping6.c
2314
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping/ping6.c
2319
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping/ping6.c
2334
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping/ping6.c
2354
pr_retip((struct ip6_hdr *)(icp + 1), end);
sbin/ping/ping6.c
249
static void pr_iph(struct ip6_hdr *);
sbin/ping/ping6.c
2511
pr_iph(struct ip6_hdr *ip6)
sbin/ping/ping6.c
2559
pr_retip(struct ip6_hdr *ip6, u_char *end)
sbin/ping/ping6.c
261
static void pr_retip(struct ip6_hdr *, u_char *);
sys/arm64/broadcom/genet/if_genet.c
1298
sizeof(struct ip6_hdr) <= MLEN), ("%s: mbuf too small", __func__));
sys/arm64/broadcom/genet/if_genet.c
1331
COPY(sizeof(struct ip6_hdr));
sys/arm64/broadcom/genet/if_genet.c
1332
offset += sizeof(struct ip6_hdr);
sys/dev/al_eth/al_eth.c
1202
struct ip6_hdr *ip6;
sys/dev/al_eth/al_eth.c
1260
ip6 = (struct ip6_hdr *)(m->m_data + ehdrlen);
sys/dev/al_eth/al_eth.c
1262
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/bxe/bxe.c
4821
struct ip6_hdr *ip6 = NULL;
sys/dev/bxe/bxe.c
4856
ip6 = (m->m_len < sizeof(struct ip6_hdr)) ?
sys/dev/bxe/bxe.c
4857
(struct ip6_hdr *)m->m_next->m_data :
sys/dev/bxe/bxe.c
4858
(struct ip6_hdr *)(m->m_data + e_hlen);
sys/dev/bxe/bxe.c
4860
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/bxe/bxe.c
4903
struct ip6_hdr *ip6 = NULL;
sys/dev/bxe/bxe.c
4937
ip6 = (m->m_len < sizeof(struct ip6_hdr)) ?
sys/dev/bxe/bxe.c
4938
(struct ip6_hdr *)m->m_next->m_data :
sys/dev/bxe/bxe.c
4939
(struct ip6_hdr *)(m->m_data + e_hlen);
sys/dev/bxe/bxe.c
4941
ip_hlen = (sizeof(struct ip6_hdr) >> 1);
sys/dev/cxgb/cxgb_sge.c
1500
struct ip6_hdr *ip6 = l3hdr;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1120
struct ip6_hdr *ip6, newip6;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1215
struct ip6_hdr *ip6, newip6;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1866
struct ip6_hdr *ip6, newip6;
sys/dev/cxgbe/crypto/t6_kern_tls.c
893
struct ip6_hdr *ip6;
sys/dev/cxgbe/crypto/t6_kern_tls.c
935
ip6 = (struct ip6_hdr *)(eh + 1);
sys/dev/cxgbe/crypto/t6_kern_tls.c
941
m->m_pkthdr.l3hlen = sizeof(struct ip6_hdr);
sys/dev/cxgbe/crypto/t7_kern_tls.c
1159
struct ip6_hdr *ip6, newip6;
sys/dev/cxgbe/crypto/t7_kern_tls.c
1256
struct ip6_hdr *ip6;
sys/dev/cxgbe/crypto/t7_kern_tls.c
779
struct ip6_hdr *ip6;
sys/dev/cxgbe/crypto/t7_kern_tls.c
823
ip6 = (struct ip6_hdr *)(eh + 1);
sys/dev/cxgbe/crypto/t7_kern_tls.c
829
m->m_pkthdr.l3hlen = sizeof(struct ip6_hdr);
sys/dev/cxgbe/crypto/t7_kern_tls.c
944
MPASS(m->m_pkthdr.l3hlen == sizeof(struct ip6_hdr));
sys/dev/cxgbe/t4_sge.c
2070
sizeof(struct ip6_hdr);
sys/dev/cxgbe/t4_sge.c
2829
m0->m_pkthdr.l3hlen = sizeof(struct ip6_hdr);
sys/dev/cxgbe/t4_sge.c
2889
m0->m_pkthdr.inner_l3hlen = sizeof(struct ip6_hdr);
sys/dev/cxgbe/t4_sge.c
5553
if (m0->m_pkthdr.l3hlen == sizeof(struct ip6_hdr))
sys/dev/cxgbe/t4_sge.c
5589
if (m0->m_pkthdr.l3hlen == sizeof(struct ip6_hdr))
sys/dev/cxgbe/t4_sge.c
5612
if (m0->m_pkthdr.inner_l3hlen == sizeof(struct ip6_hdr))
sys/dev/cxgbe/t4_sge.c
6887
if (m0->m_pkthdr.l3hlen == sizeof(struct ip6_hdr))
sys/dev/cxgbe/tom/t4_cpl_io.c
313
tp->t_maxseg -= sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_listen.c
1198
const struct ip6_hdr *ip6 = (const void *)l3hdr;
sys/dev/cxgbe/tom/t4_listen.c
1214
const struct ip6_hdr *ip6 = (const void *)l3hdr;
sys/dev/cxgbe/tom/t4_listen.c
864
th = (void *)((struct ip6_hdr *)ip + 1);
sys/dev/cxgbe/tom/t4_tom.c
1086
mtu = mss + sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_tom.c
1604
max(sizeof(struct ip), sizeof(struct ip6_hdr)) +
sys/dev/cxgbe/tom/t4_tom.c
1639
struct ip6_hdr *ip6 = (void *)&pkt[len];
sys/dev/cxgbe/tom/t4_tom.c
962
tp->t_maxseg -= sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/dev/dpaa/dpaa_eth.c
594
prs->l4_off = ether_size + sizeof(struct ip6_hdr);
sys/dev/dpaa/dpaa_eth.c
598
prs->l4_off = ether_size + sizeof(struct ip6_hdr);
sys/dev/gve/gve_tx.c
645
struct ip6_hdr *ip6;
sys/dev/gve/gve_tx.c
670
ip6 = (struct ip6_hdr *)(mtodo(mbuf_next, offset));
sys/dev/gve/gve_tx.c
671
l4_off = l3_off + sizeof(struct ip6_hdr);
sys/dev/gve/gve_tx_dqo.c
358
struct ip6_hdr *ip6;
sys/dev/gve/gve_tx_dqo.c
361
ip6 = (struct ip6_hdr *)(mtodo(mbuf, l3_off));
sys/dev/gve/gve_tx_dqo.c
362
l4_off = l3_off + sizeof(struct ip6_hdr);
sys/dev/hyperv/netvsc/if_hn.c
784
struct ip6_hdr *ip6;
sys/dev/hyperv/netvsc/if_hn.c
858
const struct ip6_hdr *ip6;
sys/dev/irdma/irdma_cm.c
3138
struct ip6_hdr *ip6h;
sys/dev/irdma/irdma_cm.c
3181
ip6h = (struct ip6_hdr *)rbuf->iph;
sys/dev/irdma/irdma_cm.c
557
struct ip6_hdr *ip6h;
sys/dev/irdma/irdma_cm.c
640
ip6h = (struct ip6_hdr *)buf;
sys/dev/irdma/irdma_utils.c
1363
struct ip6_hdr *ip6h;
sys/dev/irdma/irdma_utils.c
1371
ip6h = (struct ip6_hdr *)buf->iph;
sys/dev/irdma/irdma_utils.c
1416
struct ip6_hdr *ip6h;
sys/dev/irdma/irdma_utils.c
1436
ip6h = (struct ip6_hdr *)buf->iph;
sys/dev/irdma/irdma_utils.c
1506
struct ip6_hdr *ip6h;
sys/dev/irdma/irdma_utils.c
1530
ip6h = (struct ip6_hdr *)buf->iph;
sys/dev/mana/mana_en.c
724
struct ip6_hdr *ip6;
sys/dev/mana/mana_en.c
785
const struct ip6_hdr *ip6;
sys/dev/mana/mana_en.c
787
ip6 = (struct ip6_hdr *)(mtodo(mbuf_next, offset));
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
505
struct ip6_hdr *ip6;
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
532
ip6 = (struct ip6_hdr *)(mb->m_data + eth_hdr_len);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
156
struct ip6_hdr *ip6 = NULL;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
180
ip6 = (struct ip6_hdr *)(eh + 1);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
247
sizeof(struct ip6_hdr));
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
253
sizeof(struct ether_header) + sizeof(struct ip6_hdr),
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
254
tot_len - sizeof(struct ip6_hdr), th->th_off * 4) & 0xffff;
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
243
const struct ip6_hdr *ip6;
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
280
ip6 = (const struct ip6_hdr *)(mb->m_data + eth_hdr_len);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
358
struct ip6_hdr *ip6;
sys/dev/mxge/if_mxge.c
1762
pi->ip6 = (struct ip6_hdr *)(m->m_data + pi->ip_off);
sys/dev/mxge/if_mxge.c
1766
pi->ip6 = (struct ip6_hdr *)(ss->scratch + pi->ip_off);
sys/dev/mxge/if_mxge.c
1784
pi->ip6 = (struct ip6_hdr *)(ss->scratch + pi->ip_off);
sys/dev/mxge/if_mxge.c
2416
struct ip6_hdr *ip6 = p;
sys/dev/mxge/if_mxge_var.h
298
struct ip6_hdr *ip6;
sys/dev/oce/oce_if.c
1275
struct ip6_hdr *ip6;
sys/dev/oce/oce_if.c
1314
ip6 = (struct ip6_hdr *)(m->m_data + ehdrlen);
sys/dev/oce/oce_if.c
1317
th = (struct tcphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/dev/oce/oce_if.c
1319
total_len = ehdrlen + sizeof(struct ip6_hdr) + (th->th_off << 2);
sys/dev/oce/oce_if.c
1473
struct ip6_hdr *ip6 = NULL;
sys/dev/oce/oce_if.c
1484
ip6 = (struct ip6_hdr *)((char*)eh + sizeof(struct ether_header));
sys/dev/oce/oce_if.c
1487
- sizeof(struct ip6_hdr);
sys/dev/oce/oce_if.c
1489
tcp_hdr = (struct tcphdr *)((char*)ip6 + sizeof(struct ip6_hdr));
sys/dev/oce/oce_if.c
2737
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/dev/oce/oce_if.c
2742
m->m_data += sizeof(struct ip6_hdr);
sys/dev/oce/oce_if.c
971
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/dev/qlnx/qlnxe/qlnx_os.c
3011
struct ip6_hdr *ip6 = NULL;
sys/dev/qlnx/qlnxe/qlnx_os.c
3015
uint8_t buf[sizeof(struct ip6_hdr)];
sys/dev/qlnx/qlnxe/qlnx_os.c
3043
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
sys/dev/qlnx/qlnxe/qlnx_os.c
3045
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/qlnx/qlnxe/qlnx_os.c
3048
m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr),
sys/dev/qlnx/qlnxe/qlnx_os.c
3050
ip6 = (struct ip6_hdr *)buf;
sys/dev/qlxgb/qla_hw.c
831
struct ip6_hdr *ip6;
sys/dev/qlxgb/qla_hw.c
875
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
sys/dev/qlxgb/qla_hw.c
877
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/qlxgbe/ql_hw.c
2261
struct ip6_hdr *ip6 = NULL;
sys/dev/qlxgbe/ql_hw.c
2307
tcp_opt_off = ehdrlen + sizeof(struct ip6_hdr) +
sys/dev/qlxgbe/ql_hw.c
2312
ip6 = (struct ip6_hdr *)(hdr + ehdrlen);
sys/dev/qlxgbe/ql_hw.c
2314
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
sys/dev/qlxgbe/ql_hw.c
2317
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/qlxgbe/ql_hw.c
2382
struct ip6_hdr *ip6;
sys/dev/qlxgbe/ql_hw.c
2385
uint8_t buf[sizeof(struct ip6_hdr)];
sys/dev/qlxgbe/ql_hw.c
2426
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
sys/dev/qlxgbe/ql_hw.c
2428
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/qlxgbe/ql_hw.c
2431
m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr),
sys/dev/qlxgbe/ql_hw.c
2433
ip6 = (struct ip6_hdr *)buf;
sys/dev/qlxgbe/ql_hw.c
4211
struct ip6_hdr *ip6 = NULL;
sys/dev/qlxgbe/ql_hw.c
4215
uint8_t buf[sizeof(struct ip6_hdr)];
sys/dev/qlxgbe/ql_hw.c
4250
offset = (hdrlen + sizeof (struct ip6_hdr));
sys/dev/qlxgbe/ql_hw.c
4253
ip6 = (struct ip6_hdr *)(mp->m_data + hdrlen);
sys/dev/qlxgbe/ql_hw.c
4255
m_copydata(mp, hdrlen, sizeof (struct ip6_hdr), buf);
sys/dev/qlxgbe/ql_hw.c
4256
ip6 = (struct ip6_hdr *)buf;
sys/dev/qlxgbe/ql_hw.c
4260
hdrlen += sizeof(struct ip6_hdr);
sys/dev/qlxgbe/ql_hw.h
1521
sizeof (struct ip6_hdr) + sizeof (struct tcphdr) + 16)
sys/dev/qlxgbe/ql_isr.c
199
struct ip6_hdr *ip6 = NULL;
sys/dev/qlxgbe/ql_isr.c
319
ip6 = (struct ip6_hdr *)(mpf->m_data + ETHER_HDR_LEN);
sys/dev/qlxge/qls_def.h
84
sizeof (struct ip6_hdr) + sizeof (struct tcphdr) + 16)
sys/dev/qlxge/qls_hw.c
532
struct ip6_hdr *ip6;
sys/dev/qlxge/qls_hw.c
538
uint8_t buf[sizeof(struct ip6_hdr)];
sys/dev/qlxge/qls_hw.c
596
ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen);
sys/dev/qlxge/qls_hw.c
598
ip_hlen = sizeof(struct ip6_hdr);
sys/dev/qlxge/qls_hw.c
601
m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr),
sys/dev/qlxge/qls_hw.c
603
ip6 = (struct ip6_hdr *)buf;
sys/dev/sfxge/sfxge_rx.c
381
struct ip6_hdr *iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
470
struct ip6_hdr *iph = c->nh;
sys/dev/sfxge/sfxge_rx.c
502
struct ip6_hdr *iph = nh;
sys/dev/sfxge/sfxge_rx.c
526
struct ip6_hdr *iph = c->next_nh;
sys/dev/sfxge/sfxge_rx.c
702
struct ip6_hdr *iph = nh;
sys/dev/sfxge/sfxge_rx.c
727
struct ip6_hdr *c_iph, *iph = nh;
sys/dev/sfxge/sfxge_tx.c
1083
tso->tcph_off = tso->nh_off + sizeof(struct ip6_hdr);
sys/dev/sfxge/sfxge_tx.c
1335
struct ip6_hdr *tsoh_iph =
sys/dev/sfxge/sfxge_tx.c
1336
(struct ip6_hdr *)(header + tso->nh_off);
sys/dev/sfxge/sfxge_tx.c
834
KASSERT(((const struct ip6_hdr *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen))->ip6_nxt ==
sys/dev/sfxge/sfxge_tx.c
837
mbuf->m_pkthdr.l3hlen = mbuf->m_pkthdr.l2hlen + sizeof(struct ip6_hdr);
sys/dev/sfxge/sfxge_tx.c
975
static __unused const struct ip6_hdr *tso_ip6h(const struct sfxge_tso_state *tso)
sys/dev/sfxge/sfxge_tx.c
979
return (const struct ip6_hdr *)(tso->mbuf->m_data + tso->nh_off);
sys/dev/usb/net/uhso.c
1665
struct ip6_hdr *ip6;
sys/dev/usb/net/uhso.c
1704
ip6 = (struct ip6_hdr *)cp;
sys/dev/virtio/network/if_vtnet.c
2049
if (__predict_false(m->m_len < hoff + sizeof(struct ip6_hdr))
sys/dev/virtio/network/virtio_net.h
285
if (__predict_false(offset < ip_start + sizeof(struct ip6_hdr)))
sys/dev/virtio/network/virtio_net.h
335
sizeof(struct ip6_hdr)))
sys/dev/vnic/nicvf_queues.c
1789
if (mbuf->m_len < ehdrlen + sizeof(struct ip6_hdr)) {
sys/dev/vnic/nicvf_queues.c
1790
mbuf = m_pullup(mbuf, ehdrlen +sizeof(struct ip6_hdr));
sys/dev/wg/if_wg.c
1653
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/dev/wg/if_wg.c
1655
len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
sys/dev/wg/if_wg.c
2227
peer = wg_aip_lookup(sc, AF_INET6, &mtod(m, struct ip6_hdr *)->ip6_dst);
sys/dev/wg/if_wg.c
2270
if ((*m)->m_pkthdr.len >= sizeof(struct ip6_hdr))
sys/dev/wg/if_wg.c
2271
*m = m_pullup(*m, sizeof(struct ip6_hdr));
sys/dev/wg/if_wg.c
2281
else if (ipv == 6 && (*m)->m_pkthdr.len >= sizeof(struct ip6_hdr))
sys/kern/uipc_mbufhash.c
85
struct ip6_hdr ip6;
sys/kern/uipc_mbufhash.c
93
const struct ip6_hdr *ip6;
sys/net/altq/altq_red.c
497
struct ip6_hdr *ip6 = hdr;
sys/net/altq/altq_subr.c
1054
struct ip6_hdr *ip6;
sys/net/altq/altq_subr.c
1056
ip6 = mtod(m, struct ip6_hdr *);
sys/net/altq/altq_subr.c
1214
struct ip6_hdr *ip6;
sys/net/altq/altq_subr.c
1236
off = ((caddr_t)ip6 - m0->m_data) + sizeof(struct ip6_hdr);
sys/net/altq/altq_subr.c
773
struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/net/altq/altq_subr.c
833
struct ip6_hdr *ip6 = (struct ip6_hdr *)pktattr->pattr_hdr;
sys/net/altq/altq_subr.c
88
static int extract_ports6(struct mbuf *, struct ip6_hdr *,
sys/net/if_bridge.c
4304
struct ip6_hdr *ip6;
sys/net/if_bridge.c
4314
if ((m = m_copyup(m, sizeof(struct ip6_hdr),
sys/net/if_bridge.c
4321
} else if (__predict_false(m->m_len < sizeof(struct ip6_hdr))) {
sys/net/if_bridge.c
4323
if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/net/if_bridge.c
4330
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_geneve.c
1487
ifp->if_hdrlen += sizeof(struct ip6_hdr);
sys/net/if_geneve.c
2432
struct ip6_hdr *ip6;
sys/net/if_geneve.c
2442
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_geneve.c
2456
struct ip6_hdr *ip6_inner, ip6hdr;
sys/net/if_geneve.c
2476
if (m->m_pkthdr.len < ETHER_HDR_LEN + sizeof(struct ip6_hdr)) {
sys/net/if_geneve.c
2504
if (__predict_false(m->m_len < offset + sizeof(struct ip6_hdr))) {
sys/net/if_geneve.c
2505
m_copydata(m, offset, sizeof(struct ip6_hdr), (caddr_t)&ip6hdr);
sys/net/if_geneve.c
2646
struct ip6_hdr *ip6;
sys/net/if_geneve.c
2682
M_PREPEND(m, sizeof(struct ip6_hdr) + sizeof(struct geneveudphdr), M_NOWAIT);
sys/net/if_geneve.c
2688
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_geneve.c
2704
geneve_encap_header(sc, m, sizeof(struct ip6_hdr), srcport, dstport,
sys/net/if_geneve.c
2762
struct udphdr *hdr = mtodo(m, sizeof(struct ip6_hdr));
sys/net/if_geneve.c
2765
m->m_pkthdr.len - sizeof(struct ip6_hdr), IPPROTO_UDP, 0);
sys/net/if_geneve.c
2968
struct ip6_hdr *ip6hdr;
sys/net/if_geneve.c
2990
ip6hdr = mtodo(m, offset - sizeof(struct ip6_hdr));
sys/net/if_geneve.c
3117
struct ip6_hdr *ip6hdr;
sys/net/if_geneve.c
3143
offset += sizeof(struct ip6_hdr);
sys/net/if_geneve.c
3150
ip6hdr = mtodo(m, offset - sizeof(struct ip6_hdr));
sys/net/if_gif.c
434
struct ip6_hdr *ip6;
sys/net/if_gif.c
487
if (m->m_len < sizeof(struct ip6_hdr))
sys/net/if_gif.c
488
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/net/if_gif.c
494
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_gif.c
575
struct ip6_hdr *ip6;
sys/net/if_gif.c
610
if (m->m_len < sizeof(struct ip6_hdr))
sys/net/if_gif.c
611
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/net/if_gif.c
615
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_gif.h
41
struct ip6_hdr;
sys/net/if_gif.h
61
struct ip6_hdr *ip6hdr;
sys/net/if_gre.c
910
&mtod(m, struct ip6_hdr *)->ip6_src,
sys/net/if_gre.c
911
&mtod(m, struct ip6_hdr *)->ip6_dst);
sys/net/if_gre.c
914
flowid = mtod(m, struct ip6_hdr *)->ip6_src.s6_addr32[3] ^
sys/net/if_gre.c
915
mtod(m, struct ip6_hdr *)->ip6_dst.s6_addr32[3];
sys/net/if_gre.c
992
len = sizeof(struct ip6_hdr);
sys/net/if_gre.h
65
struct ip6_hdr gi6_ip6;
sys/net/if_gre.h
70
struct ip6_hdr gi6_ip6;
sys/net/if_ovpn.c
1897
struct ip6_hdr *ip6;
sys/net/if_ovpn.c
1907
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_ovpn.c
2013
struct ip6_hdr *ip6;
sys/net/if_ovpn.c
2015
*m0 = m_pullup(*m0, sizeof(struct ip6_hdr));
sys/net/if_ovpn.c
2018
ip6 = mtod(*m0, struct ip6_hdr *);
sys/net/if_ovpn.c
2290
struct ip6_hdr *ip6;
sys/net/if_ovpn.c
2292
M_PREPEND(m, sizeof(struct ip6_hdr), M_NOWAIT);
sys/net/if_ovpn.c
2307
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_ovpn.c
2332
m->m_pkthdr.len - sizeof(struct ip6_hdr),
sys/net/if_stf.c
502
struct ip6_hdr *ip6;
sys/net/if_stf.c
549
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_stf.c
723
struct ip6_hdr *ip6;
sys/net/if_stf.c
773
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_vxlan.c
1650
ifp->if_hdrlen += sizeof(struct ip6_hdr);
sys/net/if_vxlan.c
2636
struct ip6_hdr *ip6;
sys/net/if_vxlan.c
2653
M_PREPEND(m, sizeof(struct ip6_hdr) + sizeof(struct vxlanudphdr),
sys/net/if_vxlan.c
2660
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_vxlan.c
2669
vxlan_encap_header(sc, m, sizeof(struct ip6_hdr), srcport, dstport);
sys/net/if_vxlan.c
2724
struct udphdr *hdr = mtodo(m, sizeof(struct ip6_hdr));
sys/net/if_vxlan.c
2727
m->m_pkthdr.len - sizeof(struct ip6_hdr), IPPROTO_UDP, 0);
sys/net/iflib.c
3240
struct ip6_hdr *ip6;
sys/net/iflib.c
3242
if (__predict_false(m->m_len < pi->ipi_ehdrlen + sizeof(struct ip6_hdr))) {
sys/net/iflib.c
3244
if (__predict_false((m = m_pullup(m, pi->ipi_ehdrlen + sizeof(struct ip6_hdr))) == NULL))
sys/net/iflib.c
3247
ip6 = (struct ip6_hdr *)(m->m_data + pi->ipi_ehdrlen);
sys/net/iflib.c
3250
pi->ipi_ip_hlen = sizeof(struct ip6_hdr);
sys/net/iflib.c
3358
struct ip6_hdr *ip6 = (struct ip6_hdr *)(m->m_data + pi->ipi_ehdrlen);
sys/net/iflib.c
3360
pi->ipi_ip_hlen = sizeof(struct ip6_hdr);
sys/net/iflib.c
3362
if (__predict_false(m->m_len < pi->ipi_ehdrlen + sizeof(struct ip6_hdr))) {
sys/net/iflib.c
3364
if (__predict_false((m = m_pullup(m, pi->ipi_ehdrlen + sizeof(struct ip6_hdr))) == NULL))
sys/net/iflib.c
3377
if (__predict_false(m->m_len < pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) {
sys/net/iflib.c
3379
if (__predict_false((m = m_pullup(m, pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) == NULL))
sys/net80211/ieee80211_output.c
1287
offsetof(struct ip6_hdr, ip6_flow), sizeof(flow),
sys/netgraph/netflow/netflow.c
779
ng_netflow_flow6_add(priv_p priv, fib_export_p fe, struct ip6_hdr *ip6,
sys/netgraph/netflow/netflow.c
804
plen = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
sys/netgraph/netflow/netflow_v9.h
110
#define _NETFLOW_V9_MAX_SIZE(x) (x) - sizeof(struct ip6_hdr) - sizeof(struct udphdr) - 16
sys/netgraph/netflow/ng_netflow.c
593
struct ip6_hdr *ip6 = NULL;
sys/netgraph/netflow/ng_netflow.c
723
M_CHECK(sizeof(struct ip6_hdr));
sys/netgraph/netflow/ng_netflow.c
725
ip6 = (struct ip6_hdr *)(eh + 1);
sys/netgraph/netflow/ng_netflow.c
747
M_CHECK(sizeof(struct ip6_hdr));
sys/netgraph/netflow/ng_netflow.c
748
ip6 = (struct ip6_hdr *)(evh + 1);
sys/netgraph/netflow/ng_netflow.c
769
M_CHECK(sizeof(struct ip6_hdr) - sizeof(struct ip));
sys/netgraph/netflow/ng_netflow.c
770
ip6 = mtod(m, struct ip6_hdr *);
sys/netgraph/netflow/ng_netflow.c
924
ip6 = (struct ip6_hdr *)(mtod(m, caddr_t) + l3_off);
sys/netgraph/netflow/ng_netflow.h
524
int ng_netflow_flow6_add(priv_p, fib_export_p, struct ip6_hdr *, caddr_t,
sys/netgraph/ng_checksum.c
416
struct ip6_hdr *ip6;
sys/netgraph/ng_checksum.c
425
PULLUP_CHECK(m, sizeof(struct ip6_hdr));
sys/netgraph/ng_checksum.c
426
ip6 = (struct ip6_hdr *) mtodo(m, l3_offset);
sys/netgraph/ng_checksum.c
431
hlen = sizeof(struct ip6_hdr);
sys/netinet/in_gif.c
405
sizeof(struct ip6_hdr),
sys/netinet/ip_carp.c
1280
struct ip6_hdr *ip6;
sys/netinet/ip_carp.c
1292
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
1440
struct ip6_hdr *ip6;
sys/netinet/ip_carp.c
1453
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
621
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
649
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
685
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
744
struct ip6_hdr *ip6;
sys/netinet/ip_carp.c
757
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_divert.c
233
sizeof(struct ip6_hdr), sizeof(struct ip6_hdr));
sys/netinet/ip_divert.c
238
sctp_delayed_cksum(m, sizeof(struct ip6_hdr));
sys/netinet/ip_divert.c
496
struct ip6_hdr *const ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_header.h
541
sizeof(struct ip6_hdr))
sys/netinet/sctp_header.h
545
sizeof(struct ip6_hdr))
sys/netinet/sctp_header.h
547
#define SCTP_MIN_OVERHEAD (sizeof(struct ip6_hdr) + \
sys/netinet/sctp_output.c
11124
struct ip6_hdr *ip6;
sys/netinet/sctp_output.c
11160
len += sizeof(struct ip6_hdr);
sys/netinet/sctp_output.c
11218
ip6 = mtod(mout, struct ip6_hdr *);
sys/netinet/sctp_output.c
11231
len = sizeof(struct ip6_hdr);
sys/netinet/sctp_output.c
11318
ip6->ip6_plen = htons((uint16_t)(len - sizeof(struct ip6_hdr)));
sys/netinet/sctp_output.c
11320
shout->checksum = sctp_calculate_cksum(mout, sizeof(struct ip6_hdr) + sizeof(struct udphdr));
sys/netinet/sctp_output.c
11322
if ((udp->uh_sum = in6_cksum(o_pak, IPPROTO_UDP, sizeof(struct ip6_hdr), len - sizeof(struct ip6_hdr))) == 0) {
sys/netinet/sctp_output.c
4273
struct ip6_hdr *ip6h;
sys/netinet/sctp_output.c
4322
ip6h = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_output.c
4368
ip6h->ip6_plen = htons((uint16_t)(packet_length - sizeof(struct ip6_hdr)));
sys/netinet/sctp_output.c
4483
udp = (struct udphdr *)((caddr_t)ip6h + sizeof(struct ip6_hdr));
sys/netinet/sctp_output.c
4486
udp->uh_ulen = htons((uint16_t)(packet_length - sizeof(struct ip6_hdr)));
sys/netinet/sctp_output.c
4490
sctphdr = (struct sctphdr *)((caddr_t)ip6h + sizeof(struct ip6_hdr));
sys/netinet/sctp_output.c
4534
sctphdr->checksum = sctp_calculate_cksum(m, sizeof(struct ip6_hdr) + sizeof(struct udphdr));
sys/netinet/sctp_output.c
4536
if ((udp->uh_sum = in6_cksum(o_pak, IPPROTO_UDP, sizeof(struct ip6_hdr), packet_length - sizeof(struct ip6_hdr))) == 0) {
sys/netinet/sctp_output.c
5120
SCTP_BUF_RESV_UF(op_err, sizeof(struct ip6_hdr));
sys/netinet/sctp_output.c
5163
SCTP_BUF_RESV_UF(op_err, sizeof(struct ip6_hdr));
sys/netinet/sctp_output.c
5254
SCTP_BUF_RESV_UF(op_err, sizeof(struct ip6_hdr));
sys/netinet/sctputil.c
7136
struct ip6_hdr *ip6;
sys/netinet/sctputil.c
7199
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/siftr.c
607
&((struct ip6_hdr *)ip)->ip6_src, sport,
sys/netinet/siftr.c
608
&((struct ip6_hdr *)ip)->ip6_dst, dport, INPLOOKUP_RLOCKPCB,
sys/netinet/siftr.c
622
&((struct ip6_hdr *)ip)->ip6_dst, dport,
sys/netinet/siftr.c
623
&((struct ip6_hdr *)ip)->ip6_src, sport, INPLOOKUP_RLOCKPCB,
sys/netinet/siftr.c
873
struct ip6_hdr *ip6;
sys/netinet/siftr.c
892
ip6 = mtod(*m, struct ip6_hdr *);
sys/netinet/siftr.c
907
ip6_hl = sizeof(struct ip6_hdr);
sys/netinet/tcp_input.c
3417
struct ip6_hdr *ip6;
sys/netinet/tcp_input.c
3429
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
3726
sizeof (struct ip6_hdr) + sizeof (struct tcphdr) :
sys/netinet/tcp_input.c
3974
min_protoh = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_input.c
619
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_input.c
643
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
781
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_lro.c
341
if (__predict_false(mlen < sizeof(struct ip6_hdr)))
sys/netinet/tcp_lro.c
352
mlen -= sizeof(struct ip6_hdr);
sys/netinet/tcp_lro.h
120
struct ip6_hdr *ip6;
sys/netinet/tcp_lro_hpts.c
263
struct ip6_hdr *ip6;
sys/netinet/tcp_output.c
1159
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_output.c
1161
udp = (struct udphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/netinet/tcp_output.c
1164
ulen = hdrlen + len - sizeof(struct ip6_hdr);
sys/netinet/tcp_output.c
212
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_output.c
779
hdrlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
sys/netinet/tcp_stacks/bbr.c
11859
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_stacks/bbr.c
12828
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/bbr.c
13249
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_stacks/bbr.c
13251
udp = (struct udphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/netinet/tcp_stacks/bbr.c
13254
ulen = hdrlen + len - sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/bbr.c
3483
seg_oh += sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/rack.c
13935
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_stacks/rack.c
13945
rack->r_ctl.fsb.tcp_ip_hdr_len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
13946
ip6 = (struct ip6_hdr *)rack->r_ctl.fsb.tcp_ip_hdr;
sys/netinet/tcp_stacks/rack.c
13949
udp = (struct udphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/netinet/tcp_stacks/rack.c
14000
rack->r_ctl.fsb.tcp_ip_hdr_len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr) + sizeof(struct udphdr);
sys/netinet/tcp_stacks/rack.c
17439
oh += sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/rack.c
18365
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_stacks/rack.c
18368
ip6 = (struct ip6_hdr *)rack->r_ctl.fsb.tcp_ip_hdr;
sys/netinet/tcp_stacks/rack.c
18369
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
18538
ulen = hdrlen + len - sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/rack.c
18954
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_stacks/rack.c
18957
ip6 = (struct ip6_hdr *)rack->r_ctl.fsb.tcp_ip_hdr;
sys/netinet/tcp_stacks/rack.c
18958
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
19099
ulen = hdrlen + len - sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/rack.c
19603
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_stacks/rack.c
2082
ether += sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/rack.c
21059
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
21523
ip6 = (struct ip6_hdr *)rack->r_ctl.fsb.tcp_ip_hdr;
sys/netinet/tcp_stacks/rack.c
21534
ulen = hdrlen + len - sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/rack.c
21543
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_stacks/rack.c
21545
udp = (struct udphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/netinet/tcp_stacks/rack.c
21548
ulen = hdrlen + len - sizeof(struct ip6_hdr);
sys/netinet/tcp_stacks/rack.c
21667
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_stacks/rack_bbr_common.c
130
struct ip6_hdr *ip6 = NULL; /* Keep compiler happy. */
sys/netinet/tcp_stacks/rack_bbr_common.c
176
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_stacks/rack_bbr_common.c
351
struct ip6_hdr *ip6 = NULL; /* Keep compiler happy. */
sys/netinet/tcp_stacks/rack_bbr_common.c
388
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
1519
max_protohdr_grow(sizeof(struct ip6_hdr) + sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
1644
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
1646
ip6 = (struct ip6_hdr *)ip_ptr;
sys/netinet/tcp_subr.c
1740
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
1799
sizeof(struct ip6_hdr));
sys/netinet/tcp_subr.c
1800
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
1847
sizeof(struct ip6_hdr));
sys/netinet/tcp_subr.c
1848
ip6 = mtod(n, struct ip6_hdr *);
sys/netinet/tcp_subr.c
1914
tlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
sys/netinet/tcp_subr.c
1969
ulen = tlen - sizeof(struct ip6_hdr);
sys/netinet/tcp_subr.c
2061
tlen - sizeof(struct ip6_hdr), IPPROTO_TCP, 0);
sys/netinet/tcp_subr.c
2503
(isipv6 ? sizeof (struct ip6_hdr) +
sys/netinet/tcp_subr.c
3256
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
3365
sizeof (struct ip6_hdr)) {
sys/netinet/tcp_subr.c
4157
const struct ip6_hdr *ip6 = (const struct ip6_hdr *)ip6hdr;
sys/netinet/tcp_subr.c
577
struct ip6_hdr *ip6;
sys/netinet/tcp_subr.c
639
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
641
if (__predict_false(len + sizeof(struct ip6_hdr) !=
sys/netinet/tcp_syncache.c
1833
struct ip6_hdr *ip6 = NULL;
sys/netinet/tcp_syncache.c
1840
(sc->sc_inc.inc_flags & INC_ISIPV6) ? sizeof(struct ip6_hdr) :
sys/netinet/tcp_syncache.c
1873
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_syncache.c
1887
ulen = (tlen - sizeof(struct ip6_hdr));
sys/netinet6/frag6.c
273
struct ip6_hdr *ip6;
sys/netinet6/frag6.c
281
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
310
struct ip6_hdr *ip6;
sys/netinet6/frag6.c
326
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
423
struct ip6_hdr *ip6;
sys/netinet6/frag6.c
455
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
481
offsetof(struct ip6_hdr, ip6_plen));
sys/netinet6/frag6.c
521
frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
sys/netinet6/frag6.c
524
offsetof(struct ip6_hdr, ip6_plen));
sys/netinet6/frag6.c
633
q6->ip6q_unfrglen = offset - sizeof(struct ip6_hdr) -
sys/netinet6/frag6.c
675
struct ip6_hdr *ip6err;
sys/netinet6/frag6.c
692
ip6err = mtod(merr, struct ip6_hdr *);
sys/netinet6/frag6.c
853
if ((u_int)plen + (u_int)offset - sizeof(struct ip6_hdr) >
sys/netinet6/frag6.c
858
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
859
ip6->ip6_plen = htons((u_short)plen + offset - sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
1082
eip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
1109
ip6cp.ip6c_ip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
1181
int replylen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo);
sys/netinet6/icmp6.c
1186
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
1191
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1423
bcopy(mtod(m, caddr_t), mtod(n, caddr_t), sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
1424
nni6 = (struct icmp6_nodeinfo *)(mtod(n, struct ip6_hdr *) + 1);
sys/netinet6/icmp6.c
1446
sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo));
sys/netinet6/icmp6.c
1469
sizeof(struct ip6_hdr) + sizeof(struct icmp6_nodeinfo);
sys/netinet6/icmp6.c
1473
n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
1882
struct ip6_hdr *ip6 = v;
sys/netinet6/icmp6.c
1904
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2007
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
2015
if (off < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
2018
(u_long)off, (u_long)sizeof(struct ip6_hdr),
sys/netinet6/icmp6.c
2028
if (sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) > MHLEN)
sys/netinet6/icmp6.c
2031
if (off > sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
2033
struct ip6_hdr nip6;
sys/netinet6/icmp6.c
2035
l = off - sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
2038
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
2046
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
2052
plen = m->m_pkthdr.len - sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
2053
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2128
sizeof(struct ip6_hdr), plen);
sys/netinet6/icmp6.c
2166
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
2188
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2197
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2371
struct ip6_hdr *sip6; /* m0 as struct ip6_hdr */
sys/netinet6/icmp6.c
2374
struct ip6_hdr *ip6; /* m as struct ip6_hdr */
sys/netinet6/icmp6.c
2398
sip6 = mtod(m0, struct ip6_hdr *);
sys/netinet6/icmp6.c
241
struct ip6_hdr *ip6;
sys/netinet6/icmp6.c
2427
if (maxlen < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) +
sys/netinet6/icmp6.c
2454
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
246
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
247
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
253
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2625
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
269
struct ip6_hdr *oip6, *nip6;
sys/netinet6/icmp6.c
288
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
289
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
295
oip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
339
oip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
369
preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
sys/netinet6/icmp6.c
376
nip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
390
icmp6_reflect(m, sizeof(struct ip6_hdr)); /* header order: IPv6 - ICMPv6 */
sys/netinet6/icmp6.c
454
struct ip6_hdr *ip6, *nip6;
sys/netinet6/icmp6.c
484
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
518
ip6len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/netinet6/icmp6.c
588
nip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/icmp6.c
589
bcopy(ip6, nip6, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
592
noff = sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
688
noff = sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
726
nip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/icmp6.c
727
bcopy(ip6, nip6, sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
742
noff = sizeof(struct ip6_hdr);
sys/netinet6/icmp6.c
743
n->m_pkthdr.len = n->m_len = sizeof(struct ip6_hdr) +
sys/netinet6/icmp6.c
924
struct ip6_hdr *eip6;
sys/netinet6/icmp6.c
930
if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
935
if (m->m_len < off + sizeof(*icmp6) + sizeof(struct ip6_hdr)) {
sys/netinet6/icmp6.c
936
m = m_pullup(m, off + sizeof(*icmp6) + sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
944
eip6 = (struct ip6_hdr *)(icmp6 + 1);
sys/netinet6/icmp6.c
951
sizeof(struct ip6_hdr);
sys/netinet6/in6.h
667
struct ip6_hdr;
sys/netinet6/in6.h
673
int in6_cksum_pseudo(struct ip6_hdr *, uint32_t, uint8_t, uint16_t);
sys/netinet6/in6_cksum.c
137
in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum)
sys/netinet6/in6_cksum.c
263
struct ip6_hdr *ip6;
sys/netinet6/in6_cksum.c
91
_in6_cksum_pseudo(struct ip6_hdr *ip6, uint32_t len, uint8_t nxt, uint16_t csum)
sys/netinet6/in6_gif.c
212
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
305
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
310
M_PREPEND(m, sizeof(struct ip6_hdr), M_NOWAIT);
sys/netinet6/in6_gif.c
314
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
316
memcpy(ip6, sc->gif_ip6hdr, sizeof(struct ip6_hdr));
sys/netinet6/in6_gif.c
338
struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
349
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
363
const struct ip6_hdr *ip6;
sys/netinet6/in6_gif.c
376
ip6 = mtod(m, const struct ip6_hdr *);
sys/netinet6/in6_gif.c
426
.min_length = sizeof(struct ip6_hdr) +
sys/netinet6/in6_gif.c
437
.min_length = 2 * sizeof(struct ip6_hdr),
sys/netinet6/in6_gif.c
446
.min_length = sizeof(struct ip6_hdr) +
sys/netinet6/in6_pcb.c
1295
struct ip6_hdr *ip;
sys/netinet6/in6_pcb.c
1297
ip = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_rss.c
211
const struct ip6_hdr *ip6;
sys/netinet6/in6_rss.c
228
off = sizeof(struct ip6_hdr);
sys/netinet6/in6_rss.c
244
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_fastfwd.c
100
struct ip6_hdr *ip6;
sys/netinet6/ip6_fastfwd.c
108
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_fastfwd.c
134
if (m->m_pkthdr.len - sizeof(struct ip6_hdr) < plen) {
sys/netinet6/ip6_fastfwd.c
139
if (m->m_pkthdr.len > sizeof(struct ip6_hdr) + plen) {
sys/netinet6/ip6_fastfwd.c
141
m->m_len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_fastfwd.c
142
m->m_pkthdr.len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_fastfwd.c
144
m_adj(m, sizeof(struct ip6_hdr) + plen -
sys/netinet6/ip6_fastfwd.c
186
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_fastfwd.c
254
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_fastfwd.c
292
if (offset < sizeof(struct ip6_hdr) || offset > m->m_pkthdr.len)
sys/netinet6/ip6_forward.c
332
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_forward.c
403
if (offset < sizeof(struct ip6_hdr) || offset > m->m_pkthdr.len)
sys/netinet6/ip6_forward.c
96
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_gre.c
148
const struct ip6_hdr *ip6;
sys/netinet6/ip6_gre.c
155
ip6 = mtod(m, const struct ip6_hdr *);
sys/netinet6/ip6_gre.c
436
struct ip6_hdr *ip6;
sys/netinet6/ip6_gre.c
544
sizeof(struct ip6_hdr),
sys/netinet6/ip6_input.c
1004
const int erroff = sizeof(struct ip6_hdr) + sizeof(struct ip6_hbh);
sys/netinet6/ip6_input.c
1068
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
1082
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1114
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1331
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
1338
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1377
int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr);
sys/netinet6/ip6_input.c
1547
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
1550
if (off == sizeof(struct ip6_hdr))
sys/netinet6/ip6_input.c
1551
return (offsetof(struct ip6_hdr, ip6_nxt));
sys/netinet6/ip6_input.c
1552
if (off < sizeof(struct ip6_hdr))
sys/netinet6/ip6_input.c
1555
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1557
len = sizeof(struct ip6_hdr);
sys/netinet6/ip6_input.c
1583
struct ip6_hdr ip6;
sys/netinet6/ip6_input.c
415
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
426
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
521
struct ip6_hdr *ip6;
sys/netinet6/ip6_input.c
526
int off = sizeof(struct ip6_hdr), nest;
sys/netinet6/ip6_input.c
553
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
600
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_input.c
601
if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/netinet6/ip6_input.c
608
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
690
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
718
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
851
if (m->m_pkthdr.len - sizeof(struct ip6_hdr) < plen) {
sys/netinet6/ip6_input.c
856
if (m->m_pkthdr.len > sizeof(struct ip6_hdr) + plen) {
sys/netinet6/ip6_input.c
858
m->m_len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_input.c
859
m->m_pkthdr.len = sizeof(struct ip6_hdr) + plen;
sys/netinet6/ip6_input.c
861
m_adj(m, sizeof(struct ip6_hdr) + plen - m->m_pkthdr.len);
sys/netinet6/ip6_input.c
898
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1140
X_ip6_mforward(struct ip6_hdr *ip6, struct ifnet *ifp, struct mbuf *m)
sys/netinet6/ip6_mroute.c
1234
if (mb0 && (!M_WRITABLE(mb0) || mb0->m_len < sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1235
mb0 = m_pullup(mb0, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1269
mm = m_copym(mb0, 0, sizeof(struct ip6_hdr), M_NOWAIT);
sys/netinet6/ip6_mroute.c
134
static void phyint_send(struct ip6_hdr *, struct mif6 *, struct mbuf *);
sys/netinet6/ip6_mroute.c
135
static int register_send(struct mf6ctable *, struct ip6_hdr *, mifi_t,
sys/netinet6/ip6_mroute.c
1462
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
150
.min_length = sizeof(struct ip6_hdr) + PIM_MINLEN,
sys/netinet6/ip6_mroute.c
1509
mm = m_copym(m, 0, sizeof(struct ip6_hdr),
sys/netinet6/ip6_mroute.c
1513
mm->m_len < sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1514
mm = m_pullup(mm, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1630
phyint_send(struct ip6_hdr *ip6, struct mif6 *mifp, struct mbuf *m)
sys/netinet6/ip6_mroute.c
1649
(!M_WRITABLE(mb_copy) || mb_copy->m_len < sizeof(struct ip6_hdr)))
sys/netinet6/ip6_mroute.c
1650
mb_copy = m_pullup(mb_copy, sizeof(struct ip6_hdr));
sys/netinet6/ip6_mroute.c
1732
register_send(struct mf6ctable *mfct, struct ip6_hdr *ip6, mifi_t mifi,
sys/netinet6/ip6_mroute.c
1753
mm->m_len = sizeof(struct ip6_hdr);
sys/netinet6/ip6_mroute.c
1766
mm->m_pkthdr.len = len + sizeof(struct ip6_hdr);
sys/netinet6/ip6_mroute.c
1816
struct ip6_hdr *ip6;
sys/netinet6/ip6_mroute.c
1856
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1901
struct ip6_hdr *eip6;
sys/netinet6/ip6_mroute.c
1935
eip6 = (struct ip6_hdr *) (reghdr + 1);
sys/netinet6/ip6_mroute.c
365
static int X_ip6_mforward(struct ip6_hdr *, struct ifnet *, struct mbuf *);
sys/netinet6/ip6_mroute.h
283
struct ip6_hdr;
sys/netinet6/ip6_mroute.h
288
extern int (*ip6_mforward)(struct ip6_hdr *, struct ifnet *,
sys/netinet6/ip6_output.c
1005
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
1156
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
1220
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
1311
if (hlen > sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_output.c
1312
n = m_copym(m0, sizeof(struct ip6_hdr),
sys/netinet6/ip6_output.c
1313
hlen - sizeof(struct ip6_hdr), M_NOWAIT);
sys/netinet6/ip6_output.c
217
sizeof(struct ip6_hdr) + optlen);
sys/netinet6/ip6_output.c
222
sctp_delayed_cksum(m, sizeof(struct ip6_hdr) + optlen);
sys/netinet6/ip6_output.c
233
struct ip6_hdr *ip6, *mhip6;
sys/netinet6/ip6_output.c
242
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
268
mhip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
282
sizeof(*ip6f) - sizeof(struct ip6_hdr)));
sys/netinet6/ip6_output.c
3139
struct ip6_hdr *ip6;
sys/netinet6/ip6_output.c
3151
copym->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/ip6_output.c
3152
copym = m_pullup(copym, sizeof(struct ip6_hdr));
sys/netinet6/ip6_output.c
3156
ip6 = mtod(copym, struct ip6_hdr *);
sys/netinet6/ip6_output.c
3178
struct ip6_hdr *ip6;
sys/netinet6/ip6_output.c
3180
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
404
struct ip6_hdr *ip6;
sys/netinet6/ip6_output.c
450
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
470
unfragpartlen = sizeof(struct ip6_hdr);
sys/netinet6/ip6_output.c
536
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_var.h
392
extern int (*ip6_mforward)(struct ip6_hdr *, struct ifnet *,
sys/netinet6/ip6_var.h
472
struct ip6_hdr *ip6c_ip6; /* ip6 header of target packet */
sys/netinet6/mld6.c
1042
mld_v1_input_report(struct ifnet *ifp, const struct ip6_hdr *ip6,
sys/netinet6/mld6.c
116
static int mld_v1_input_query(struct ifnet *, const struct ip6_hdr *,
sys/netinet6/mld6.c
118
static int mld_v1_input_report(struct ifnet *, const struct ip6_hdr *,
sys/netinet6/mld6.c
1194
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
1227
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/mld6.c
134
static int mld_v2_input_query(struct ifnet *, const struct ip6_hdr *,
sys/netinet6/mld6.c
1748
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
1783
M_ALIGN(mh, sizeof(struct ip6_hdr));
sys/netinet6/mld6.c
1784
mh->m_pkthdr.len = sizeof(struct ip6_hdr) + sizeof(struct mld_hdr);
sys/netinet6/mld6.c
1785
mh->m_len = sizeof(struct ip6_hdr);
sys/netinet6/mld6.c
1787
ip6 = mtod(mh, struct ip6_hdr *);
sys/netinet6/mld6.c
1805
sizeof(struct ip6_hdr), sizeof(struct mld_hdr));
sys/netinet6/mld6.c
3033
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
3084
ip6 = mtod(m0, struct ip6_hdr *);
sys/netinet6/mld6.c
3100
md = m_getptr(m0, sizeof(struct ip6_hdr), &off);
sys/netinet6/mld6.c
3142
struct ip6_hdr *ip6;
sys/netinet6/mld6.c
3165
M_ALIGN(mh, sizeof(struct ip6_hdr) + sizeof(struct mldv2_report));
sys/netinet6/mld6.c
3170
mh->m_len = sizeof(struct ip6_hdr) + sizeof(struct mldv2_report);
sys/netinet6/mld6.c
3171
mh->m_pkthdr.len = sizeof(struct ip6_hdr) +
sys/netinet6/mld6.c
3174
ip6 = mtod(mh, struct ip6_hdr *);
sys/netinet6/mld6.c
3195
sizeof(struct ip6_hdr), sizeof(struct mldv2_report) + mldreclen);
sys/netinet6/mld6.c
576
mld_v1_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6,
sys/netinet6/mld6.c
753
mld_v2_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6,
sys/netinet6/mld6_var.h
103
#define MLD_MTUSPACE (sizeof(struct ip6_hdr) + sizeof(struct mld_raopt) + \
sys/netinet6/nd6.c
2207
struct ip6_hdr *ip6;
sys/netinet6/nd6.c
2224
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6.c
2225
ip6len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/netinet6/nd6.c
2236
IP_PROBE(send, NULL, NULL, mtod(m, struct ip6_hdr *), ifp, NULL,
sys/netinet6/nd6.c
2237
mtod(m, struct ip6_hdr *));
sys/netinet6/nd6.c
602
struct ip6_hdr hdr;
sys/netinet6/nd6_nbr.c
1027
m->m_pkthdr.len = m->m_len = sizeof(struct ip6_hdr) + icmp6len;
sys/netinet6/nd6_nbr.c
1031
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
1118
in6_cksum(m, IPPROTO_ICMPV6, sizeof(struct ip6_hdr), icmp6len);
sys/netinet6/nd6_nbr.c
146
struct ip6_hdr *ip6;
sys/netinet6/nd6_nbr.c
165
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
182
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
441
struct ip6_hdr *ip6;
sys/netinet6/nd6_nbr.c
472
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
676
struct ip6_hdr *ip6;
sys/netinet6/nd6_nbr.c
703
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
720
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
999
struct ip6_hdr *ip6;
sys/netinet6/nd6_rtr.c
168
struct ip6_hdr *ip6;
sys/netinet6/nd6_rtr.c
190
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_rtr.c
215
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_rtr.c
510
struct ip6_hdr *ip6;
sys/netinet6/nd6_rtr.c
533
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_rtr.c
559
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
147
int (*ip6_mforward)(struct ip6_hdr *, struct ifnet *, struct mbuf *);
sys/netinet6/raw_ip6.c
151
struct ip6_hdr *ip6;
sys/netinet6/raw_ip6.c
159
struct ip6_hdr *ip6 = c->ip6;
sys/netinet6/raw_ip6.c
186
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
353
struct ip6_hdr *ip6;
sys/netinet6/raw_ip6.c
453
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
506
off += sizeof(struct ip6_hdr);
sys/netinet6/route6.c
61
struct ip6_hdr *ip6;
sys/netinet6/route6.c
91
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/sctp6_usrreq.c
110
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/sctp6_usrreq.c
65
struct ip6_hdr *ip6;
sys/netinet6/send.c
113
struct ip6_hdr *ip6;
sys/netinet6/send.c
127
if (m->m_len < (sizeof(struct ip6_hdr) +
sys/netinet6/send.c
129
m = m_pullup(m, sizeof(struct ip6_hdr) +
sys/netinet6/send.c
139
icmp6len = m->m_pkthdr.len - sizeof(struct ip6_hdr);
sys/netinet6/send.c
143
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/send.c
155
nd6_ns_input(m, sizeof(struct ip6_hdr), icmp6len);
sys/netinet6/send.c
158
nd6_na_input(m, sizeof(struct ip6_hdr), icmp6len);
sys/netinet6/send.c
161
icmp6_redirect_input(m, sizeof(struct ip6_hdr));
sys/netinet6/send.c
164
nd6_rs_input(m, sizeof(struct ip6_hdr), icmp6len);
sys/netinet6/send.c
167
nd6_ra_input(m, sizeof(struct ip6_hdr), icmp6len);
sys/netinet6/send.c
178
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netinet6/send.c
179
m = m_pullup(m, sizeof(struct ip6_hdr));
sys/netinet6/send.c
183
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/send.c
277
struct ip6_hdr *ip6;
sys/netinet6/send.c
291
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
222
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
275
ctx.ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
355
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
379
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
564
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
678
struct ip6_hdr *ip6;
sys/netinet6/udp6_usrreq.c
864
hlen = sizeof(struct ip6_hdr);
sys/netinet6/udp6_usrreq.c
910
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
926
sizeof(struct ip6_hdr), plen, cscov)) == 0)
sys/netipsec/ipsec.c
1159
size += sizeof(struct ip6_hdr);
sys/netipsec/ipsec.c
700
IPSEC_ASSERT(m->m_pkthdr.len >= sizeof(struct ip6_hdr),
sys/netipsec/ipsec_input.c
183
m_copydata(m, offsetof(struct ip6_hdr, ip6_dst),
sys/netipsec/ipsec_input.c
418
if (m->m_pkthdr.len - skip < sizeof(struct ip6_hdr)) {
sys/netipsec/ipsec_input.c
560
offsetof(struct ip6_hdr, ip6_nxt), AF_INET6, proto);
sys/netipsec/ipsec_input.c
603
struct ip6_hdr *ip6;
sys/netipsec/ipsec_input.c
623
if (m->m_len < sizeof(struct ip6_hdr) &&
sys/netipsec/ipsec_input.c
624
(m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
sys/netipsec/ipsec_input.c
638
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_input.c
639
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netipsec/ipsec_input.c
657
if (m->m_pkthdr.len - skip < sizeof(struct ip6_hdr)) {
sys/netipsec/ipsec_offload.c
926
skip = sizeof(struct ip6_hdr);
sys/netipsec/ipsec_output.c
1147
struct ip6_hdr *ip6;
sys/netipsec/ipsec_output.c
1172
ip6 = mtod(*mp, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
1212
*mp = ipsec_prepend(*mp, sizeof(struct ip6_hdr), M_NOWAIT);
sys/netipsec/ipsec_output.c
1215
ip6 = mtod(*mp, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
304
i = sizeof(struct ip6_hdr);
sys/netipsec/ipsec_output.c
305
off = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_output.c
546
struct ip6_hdr *ip6;
sys/netipsec/ipsec_output.c
570
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
634
struct ip6_hdr *ip6;
sys/netipsec/ipsec_output.c
652
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
669
sizeof(struct ip6_hdr), sizeof(struct ip6_hdr));
sys/netipsec/ipsec_output.c
674
sctp_delayed_cksum(m, sizeof(struct ip6_hdr));
sys/netipsec/ipsec_output.c
681
ip6 = mtod(m, struct ip6_hdr *); /* pfil can change mbuf */
sys/netipsec/ipsec_output.c
722
i = sizeof(struct ip6_hdr);
sys/netipsec/ipsec_output.c
723
off = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/ipsec_output.c
930
if (m->m_pkthdr.len < sizeof (struct ip6_hdr)) {
sys/netipsec/ipsec_output.c
934
if (m->m_pkthdr.len - sizeof (struct ip6_hdr) > IPV6_MAXPACKET) {
sys/netipsec/ipsec_output.c
939
mtod(m, struct ip6_hdr *)->ip6_plen =
sys/netipsec/ipsec_output.c
940
htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netipsec/subr_ipsec.c
85
struct ip6_hdr ip6buf;
sys/netipsec/subr_ipsec.c
86
const struct ip6_hdr *ip6;
sys/netipsec/subr_ipsec.c
89
ip6 = mtod(m, const struct ip6_hdr *);
sys/netipsec/udpencap.c
161
struct ip6_hdr *ip6;
sys/netipsec/udpencap.c
164
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/udpencap.c
166
off = offsetof(struct ip6_hdr, ip6_nxt);
sys/netipsec/udpencap.c
167
hlen = sizeof(struct ip6_hdr);
sys/netipsec/udpencap.c
262
hlen = sizeof(struct ip6_hdr);
sys/netipsec/udpencap.c
295
struct ip6_hdr *ip6;
sys/netipsec/udpencap.c
297
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/udpencap.c
388
struct ip6_hdr *ip6;
sys/netipsec/udpencap.c
390
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/udpencap.c
399
m->m_pkthdr.len - sizeof(struct ip6_hdr),
sys/netipsec/udpencap.c
400
sizeof(struct ip6_hdr));
sys/netipsec/xform_ah.c
1035
offsetof(struct ip6_hdr, ip6_plen),
sys/netipsec/xform_ah.c
1038
m_copyback(m, offsetof(struct ip6_hdr, ip6_plen),
sys/netipsec/xform_ah.c
276
struct ip6_hdr ip6;
sys/netipsec/xform_ah.c
425
m_copyback(m, 0, sizeof(struct ip6_hdr), (caddr_t) &ip6);
sys/netipsec/xform_ah.c
428
if (skip - sizeof(struct ip6_hdr) > 0) {
sys/netipsec/xform_ah.c
431
skip - sizeof(struct ip6_hdr),
sys/netipsec/xform_ah.c
444
m_copydata(m, sizeof(struct ip6_hdr),
sys/netipsec/xform_ah.c
445
skip - sizeof(struct ip6_hdr), ptr);
sys/netipsec/xform_ah.c
450
sizeof(struct ip6_hdr);
sys/netipsec/xform_ah.c
458
for (off = 0; off < skip - sizeof(struct ip6_hdr);)
sys/netipsec/xform_ah.c
466
if (noff > skip - sizeof(struct ip6_hdr))
sys/netipsec/xform_ah.c
518
m_copyback(m, sizeof(struct ip6_hdr),
sys/netipsec/xform_ah.c
519
skip - sizeof(struct ip6_hdr), ptr);
sys/netipsec/xform_ipcomp.c
617
ipcomp->comp_nxt = mtod(m, struct ip6_hdr *)->ip6_nxt;
sys/netipsec/xform_ipcomp.c
638
mtod(m, struct ip6_hdr *)->ip6_plen =
sys/netipsec/xform_ipcomp.c
639
htons(m->m_pkthdr.len) - sizeof(struct ip6_hdr);
sys/netipsec/xform_ipcomp.c
717
const struct ip6_hdr *ip6;
sys/netipsec/xform_ipcomp.c
727
ip6 = mtod(m, const struct ip6_hdr *);
sys/netipsec/xform_ipcomp.c
748
.min_length = sizeof(struct ip6_hdr),
sys/netipsec/xform_tcp.c
162
struct ip6_hdr *ip6;
sys/netipsec/xform_tcp.c
165
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/xform_tcp.c
168
hdr_len = sizeof(struct ip6_hdr);
sys/netpfil/ipfilter/netinet/fil.c
3400
off = ((caddr_t)ip6 - m->m_data) + sizeof(struct ip6_hdr);
sys/netpfil/ipfilter/netinet/ip_compat.h
432
typedef struct ip6_hdr ip6_t;
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
141
sizeof(struct ip6_hdr), ifp, !!(flags & PFIL_OUT), mp);
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
1413
if (m->m_len < sizeof(struct ip6_hdr)) {
sys/netpfil/ipfw/dn_sched_fq_codel.c
225
struct ip6_hdr *ip6;
sys/netpfil/ipfw/dn_sched_fq_codel.c
230
ip6 = (struct ip6_hdr *)ip;
sys/netpfil/ipfw/dn_sched_fq_pie.c
800
struct ip6_hdr *ip6;
sys/netpfil/ipfw/dn_sched_fq_pie.c
805
ip6 = (struct ip6_hdr *)ip;
sys/netpfil/ipfw/ip_dn_io.c
451
struct ip6_hdr *ip6 = (struct ip6_hdr *)ip;
sys/netpfil/ipfw/ip_fw2.c
1604
if (pktlen >= sizeof(struct ip6_hdr) &&
sys/netpfil/ipfw/ip_fw2.c
1607
struct ip6_hdr *ip6 = (struct ip6_hdr *)ip;
sys/netpfil/ipfw/ip_fw2.c
1611
hlen = sizeof(struct ip6_hdr);
sys/netpfil/ipfw/ip_fw2.c
1767
PULLUP_TO(hlen, ulp, struct ip6_hdr);
sys/netpfil/ipfw/ip_fw2.c
1796
ip6 = (struct ip6_hdr *)ip;
sys/netpfil/ipfw/ip_fw2.c
2202
(struct ip6_hdr *)ip) >> 2;
sys/netpfil/ipfw/ip_fw2.c
2521
(struct ip6_hdr *)ip) >> 2;
sys/netpfil/ipfw/ip_fw2.c
2542
struct ip6_hdr *ip6;
sys/netpfil/ipfw/ip_fw2.c
2544
ip6 = (struct ip6_hdr *)ip;
sys/netpfil/ipfw/ip_fw2.c
3565
(struct ip6_hdr *)ip);
sys/netpfil/ipfw/ip_fw2.c
526
struct ip6_hdr *ip6;
sys/netpfil/ipfw/ip_fw2.c
552
hlen = sizeof(struct ip6_hdr);
sys/netpfil/ipfw/ip_fw2.c
588
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/ip_fw2.c
635
struct ip6_hdr *h6 = NULL;
sys/netpfil/ipfw/ip_fw2.c
660
len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netpfil/ipfw/ip_fw2.c
695
h6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/ip_fw2.c
893
const struct ip6_hdr *ip6)
sys/netpfil/ipfw/ip_fw_dynamic.c
2528
struct ip6_hdr *ip6;
sys/netpfil/ipfw/ip_fw_dynamic.c
2530
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/ip_fw_dynamic.c
2542
tcp = mtodo(m, sizeof(struct ip6_hdr));
sys/netpfil/ipfw/ip_fw_dynamic.c
2562
m = dyn_mgethdr(sizeof(struct ip6_hdr) +
sys/netpfil/ipfw/ip_fw_dynamic.c
2578
m = dyn_mgethdr(sizeof(struct ip6_hdr) +
sys/netpfil/ipfw/ip_fw_log.c
314
struct ip6_hdr *ip6 = NULL;
sys/netpfil/ipfw/ip_fw_log.c
331
ip6 = (struct ip6_hdr *)ip;
sys/netpfil/ipfw/ip_fw_pfil.c
540
struct ip6_hdr *const ip6 = mtod(clone, struct ip6_hdr *);
sys/netpfil/ipfw/ip_fw_pfil.c
545
off = sizeof(struct ip6_hdr);
sys/netpfil/ipfw/nat64/nat64_translate.c
1083
if (sizeof(struct ip6_hdr) +
sys/netpfil/ipfw/nat64/nat64_translate.c
1086
sizeof(struct ip6_hdr);
sys/netpfil/ipfw/nat64/nat64_translate.c
1087
plen = sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr) + len;
sys/netpfil/ipfw/nat64/nat64_translate.c
1183
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nat64/nat64_translate.c
1228
struct ip6_hdr ip6;
sys/netpfil/ipfw/nat64/nat64_translate.c
1343
struct ip6_hdr *ip6, *ip6i;
sys/netpfil/ipfw/nat64/nat64_translate.c
1349
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64_translate.c
1407
mtu -= sizeof(struct ip6_hdr) - sizeof(struct ip);
sys/netpfil/ipfw/nat64/nat64_translate.c
1468
if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
sys/netpfil/ipfw/nat64/nat64_translate.c
1493
if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
sys/netpfil/ipfw/nat64/nat64_translate.c
1494
m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
sys/netpfil/ipfw/nat64/nat64_translate.c
1499
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64_translate.c
1504
hlen += sizeof(struct ip6_hdr);
sys/netpfil/ipfw/nat64/nat64_translate.c
1565
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nat64/nat64_translate.c
1575
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64_translate.c
1630
((plen + sizeof(struct ip6_hdr) - hlen) & 0x7) != 0) {
sys/netpfil/ipfw/nat64/nat64_translate.c
1633
offsetof(struct ip6_hdr, ip6_plen), &cfg->stats,
sys/netpfil/ipfw/nat64/nat64_translate.c
1638
plen -= hlen - sizeof(struct ip6_hdr);
sys/netpfil/ipfw/nat64/nat64_translate.c
180
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nat64/nat64_translate.c
200
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64_translate.c
489
nat64_cksum_convert(struct ip6_hdr *ip6, struct ip *ip)
sys/netpfil/ipfw/nat64/nat64_translate.c
509
nat64_init_ip4hdr(const struct ip6_hdr *ip6, const struct ip6_frag *frag,
sys/netpfil/ipfw/nat64/nat64_translate.c
534
#define FRAGSZ(mtu) ((mtu) - sizeof(struct ip6_hdr) - sizeof(struct ip6_frag))
sys/netpfil/ipfw/nat64/nat64_translate.c
536
nat64_fragment6(struct nat64_counters *stats, struct ip6_hdr *ip6,
sys/netpfil/ipfw/nat64/nat64_translate.c
546
hlen = sizeof(struct ip6_hdr);
sys/netpfil/ipfw/nat64/nat64_translate.c
601
bcopy(ip6, mtod(m, void *), sizeof(struct ip6_hdr));
sys/netpfil/ipfw/nat64/nat64_translate.c
602
bcopy(&ip6f, mtodo(m, sizeof(struct ip6_hdr)),
sys/netpfil/ipfw/nat64/nat64_translate.c
648
struct ip6_hdr *ip6, *oip6;
sys/netpfil/ipfw/nat64/nat64_translate.c
677
if (len > sizeof(struct ip6_hdr)) {
sys/netpfil/ipfw/nat64/nat64_translate.c
684
mtodo(m, len - sizeof(struct ip6_hdr)),
sys/netpfil/ipfw/nat64/nat64_translate.c
685
sizeof(struct ip6_hdr));
sys/netpfil/ipfw/nat64/nat64_translate.c
686
m_adj(m, len - sizeof(struct ip6_hdr));
sys/netpfil/ipfw/nat64/nat64_translate.c
693
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64_translate.c
709
n = m_get2(sizeof(struct ip6_hdr) + plen + max_hdr, M_NOWAIT,
sys/netpfil/ipfw/nat64/nat64_translate.c
725
M_ALIGN(n, sizeof(struct ip6_hdr) + plen + max_hdr);
sys/netpfil/ipfw/nat64/nat64_translate.c
727
n->m_len = n->m_pkthdr.len = sizeof(struct ip6_hdr) + plen;
sys/netpfil/ipfw/nat64/nat64_translate.c
728
oip6 = mtod(n, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64_translate.c
749
icmp6 = mtodo(n, sizeof(struct ip6_hdr));
sys/netpfil/ipfw/nat64/nat64_translate.c
755
m_copydata(m, 0, len, mtodo(n, sizeof(struct ip6_hdr) +
sys/netpfil/ipfw/nat64/nat64_translate.c
758
sizeof(struct ip6_hdr), plen);
sys/netpfil/ipfw/nat64/nat64_translate.c
875
nat64_icmp_handle_echo(struct ip6_hdr *ip6, struct icmp6_hdr *icmp6,
sys/netpfil/ipfw/nat64/nat64_translate.c
898
nat64_icmp_translate(struct mbuf *m, struct ip6_hdr *ip6, uint16_t icmpid,
sys/netpfil/ipfw/nat64/nat64_translate.c
905
struct ip6_hdr *eip6;
sys/netpfil/ipfw/nat64/nat64clat.c
116
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nat64/nat64clat.c
124
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64clat.c
150
struct ip6_hdr *ip6i;
sys/netpfil/ipfw/nat64/nat64clat.c
174
if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
sys/netpfil/ipfw/nat64/nat64clat.c
178
if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
sys/netpfil/ipfw/nat64/nat64clat.c
179
m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
sys/netpfil/ipfw/nat64/nat64stl.c
117
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nat64/nat64stl.c
130
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/ipfw/nat64/nat64stl.c
150
struct ip6_hdr *ip6i;
sys/netpfil/ipfw/nat64/nat64stl.c
174
if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
sys/netpfil/ipfw/nat64/nat64stl.c
178
if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
sys/netpfil/ipfw/nat64/nat64stl.c
179
m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
sys/netpfil/ipfw/nptv6/nptv6.c
113
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nptv6/nptv6.c
140
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nptv6/nptv6.c
231
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nptv6/nptv6.c
289
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nptv6/nptv6.c
350
struct ip6_hdr *ip6;
sys/netpfil/ipfw/nptv6/nptv6.c
375
ip6 = mtod(args->m, struct ip6_hdr *);
sys/netpfil/ipfw/nptv6/nptv6.c
411
ip6 = mtod(args->m, struct ip6_hdr *);
sys/netpfil/ipfw/pmod/tcpmod.c
122
struct ip6_hdr *ip6;
sys/netpfil/ipfw/pmod/tcpmod.c
127
ip6 = mtod(*mp, struct ip6_hdr *);
sys/netpfil/pf/if_pfsync.c
1045
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/if_pfsync.c
1089
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/if_pfsync.c
118
struct ip6_hdr ipv6;
sys/netpfil/pf/if_pfsync.c
2073
struct ip6_hdr *ip6;
sys/netpfil/pf/if_pfsync.c
2075
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/if_pfsync.c
2079
len -= sizeof(union inet_template) - sizeof(struct ip6_hdr);
sys/netpfil/pf/if_pfsync.c
3286
struct ip6_hdr *ip6;
sys/netpfil/pf/pf.c
10105
struct ip6_hdr *ip6;
sys/netpfil/pf/pf.c
10193
ip6 = mtod(m0, struct ip6_hdr *);
sys/netpfil/pf/pf.c
10289
if (m0->m_len < sizeof(struct ip6_hdr)) {
sys/netpfil/pf/pf.c
10297
ip6 = mtod(m0, struct ip6_hdr *);
sys/netpfil/pf/pf.c
10307
in6_delayed_cksum(m0, plen, sizeof(struct ip6_hdr));
sys/netpfil/pf/pf.c
10368
sizeof(struct ip6_hdr), s);
sys/netpfil/pf/pf.c
10473
if (m->m_len < sizeof(struct ip6_hdr))
sys/netpfil/pf/pf.c
10861
pf_walk_option6(struct pf_pdesc *pd, struct ip6_hdr *h, int off, int end,
sys/netpfil/pf/pf.c
10930
pf_walk_header6(struct pf_pdesc *pd, struct ip6_hdr *h, u_short *reason)
sys/netpfil/pf/pf.c
10939
pd->off += sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
11196
struct ip6_hdr *h;
sys/netpfil/pf/pf.c
11198
if (__predict_false((*m0)->m_len < sizeof(struct ip6_hdr)) &&
sys/netpfil/pf/pf.c
11199
(pd->m = *m0 = m_pullup(*m0, sizeof(struct ip6_hdr))) == NULL) {
sys/netpfil/pf/pf.c
11208
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
11210
sizeof(struct ip6_hdr) + ntohs(h->ip6_plen)) {
sys/netpfil/pf/pf.c
11230
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
11238
pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
11259
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
2507
struct ip6_hdr *ip6;
sys/netpfil/pf/pf.c
2509
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
385
static int pf_walk_option6(struct pf_pdesc *, struct ip6_hdr *,
sys/netpfil/pf/pf.c
387
static int pf_walk_header6(struct pf_pdesc *, struct ip6_hdr *,
sys/netpfil/pf/pf.c
3931
struct ip6_hdr *ip6;
sys/netpfil/pf/pf.c
3992
ip6 = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
4006
pd->off = sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
4029
ftag->ft_maxlen -= sizeof(struct ip6_hdr) -
sys/netpfil/pf/pf.c
4065
struct ip6_hdr *ip6;
sys/netpfil/pf/pf.c
4109
ip6 = mtod(n, struct ip6_hdr *);
sys/netpfil/pf/pf.c
4142
#define PTR_IP6(field) (offsetof(struct ip6_hdr, field))
sys/netpfil/pf/pf.c
4217
ptr < sizeof(struct ip6_hdr))
sys/netpfil/pf/pf.c
4294
ptr = offsetof(struct ip6_hdr, ip6_nxt);
sys/netpfil/pf/pf.c
4433
struct ip6_hdr *h6 = NULL;
sys/netpfil/pf/pf.c
4457
len = sizeof(struct ip6_hdr) + tlen;
sys/netpfil/pf/pf.c
4529
h6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
4539
th = (struct tcphdr *)((caddr_t)h6 + sizeof(struct ip6_hdr));
sys/netpfil/pf/pf.c
4540
th->th_sum = in6_cksum_pseudo(h6, len - sizeof(struct ip6_hdr),
sys/netpfil/pf/pf.c
4582
struct ip6_hdr *h6 = NULL;
sys/netpfil/pf/pf.c
4622
bzero(m->m_data, sizeof(struct ip6_hdr) + sizeof(*hdr) + sizeof(*chunk));
sys/netpfil/pf/pf.c
4624
h6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
4634
off += sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
5522
hlen = sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
5636
struct ip6_hdr ip6;
sys/netpfil/pf/pf.c
8762
struct ip6_hdr h2_6;
sys/netpfil/pf/pf.c
8824
sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
9670
const struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf.c
9672
iplen = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf_norm.c
1003
ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1004
ip6->ip6_plen = htons(hdrlen - sizeof(struct ip6_hdr) + total);
sys/netpfil/pf/pf_norm.c
1015
if (hdrlen - sizeof(struct ip6_hdr) + total > IPV6_MAXPACKET) {
sys/netpfil/pf/pf_norm.c
1055
struct ip6_hdr *hdr;
sys/netpfil/pf/pf_norm.c
1082
hdr = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1088
hdr = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1129
hdr = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1323
struct ip6_hdr *h;
sys/netpfil/pf/pf_norm.c
1388
h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1389
pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf_norm.c
1545
struct ip6_hdr *h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
1649
struct ip6_hdr *h = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
2235
struct ip6_hdr *h6 = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
912
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netpfil/pf/pf_norm.c
934
frent->fe_len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - hdrlen;
sys/netpfil/pf/pf_osfp.c
122
fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/netpfil/pf/pf_osfp.c
50
const struct ip6_hdr *,
sys/netpfil/pf/pf_osfp.c
70
struct ip6_hdr *ip6 = NULL;
sys/netpfil/pf/pf_osfp.c
79
ip6 = (struct ip6_hdr *)NULL;
sys/netpfil/pf/pf_osfp.c
82
ip6 = mtod(pd->m, struct ip6_hdr *);
sys/netpfil/pf/pf_osfp.c
92
pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
sys/ofed/drivers/infiniband/core/ib_verbs.c
614
const struct ip6_hdr *ip6h = (const struct ip6_hdr *)&hdr->ibgrh;
tests/sys/netgraph/bridge.c
62
struct ip6_hdr ip;
tools/tools/netmap/pkt-gen.c
1049
struct ip6_hdr ip6;
tools/tools/netmap/pkt-gen.c
1096
struct ip6_hdr ip6;
tools/tools/netmap/pkt-gen.c
212
struct ip6_hdr ip;
tools/tools/netmap/pkt-gen.c
918
struct ip6_hdr ip6;
tools/tools/netmap/pkt_hash.c
210
decode_ipv6_n_hash(const struct ip6_hdr *ipv6h, uint8_t hash_split, uint8_t seed)
tools/tools/netmap/pkt_hash.c
256
rc = decode_ipv6_n_hash((const struct ip6_hdr *)(ipv6h + 1),
tools/tools/netmap/pkt_hash.c
321
rc = decode_ipv6_n_hash((const struct ip6_hdr *)(vhdr + 1),
tools/tools/netmap/pkt_hash.c
349
rc = decode_ipv6_n_hash((const struct ip6_hdr *)(ethh + 1),
tools/tools/netmap/pkt_hash.c
385
rc = decode_ipv6_n_hash((const struct ip6_hdr *)(grehdr + len),
usr.sbin/ppp/ip.c
237
const struct ip6_hdr *pip6 = (const struct ip6_hdr *)packet;
usr.sbin/ppp/ip.c
585
const struct ip6_hdr *pip6 = (const struct ip6_hdr *)packet;
usr.sbin/ppp/tcpmss.c
153
struct ip6_hdr *pip6;
usr.sbin/ppp/tcpmss.c
187
if (plen < sizeof(struct ip6_hdr))
usr.sbin/ppp/tcpmss.c
189
pip6 = (struct ip6_hdr *)MBUF_CTOP(bp);
usr.sbin/ppp/tcpmss.c
190
if (ntohs(pip6->ip6_plen) + sizeof(struct ip6_hdr) != plen)
usr.sbin/ppp/tcpmss.c
195
hlen = sizeof(struct ip6_hdr);
usr.sbin/ppp/tcpmss.c
198
if (plen >= sizeof(struct ip6_frag) + sizeof(struct ip6_hdr)) {
usr.sbin/ppp/tcpmss.c
199
pfrag = (struct ip6_frag *)(MBUF_CTOP(bp) + sizeof(struct ip6_hdr));
usr.sbin/ppp/tcpmss.c
202
hlen = sizeof(struct ip6_hdr)+ sizeof(struct ip6_frag);
usr.sbin/ppp/tcpmss.c
77
#define MAXMSS6(mtu) ((mtu) - sizeof(struct ip6_hdr) - sizeof(struct tcphdr))
usr.sbin/route6d/route6d.c
824
maxrte = (IFMINMTU - sizeof(struct ip6_hdr) -
usr.sbin/route6d/route6d.c
873
maxrte = (ifcp->ifc_mtu - sizeof(struct ip6_hdr) -
usr.sbin/rtadvd/rtadvd.c
722
struct ip6_hdr *ip;
usr.sbin/rtadvd/rtadvd.c
786
if ((size_t)i < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) {
usr.sbin/rtadvd/rtadvd.c
792
ip = (struct ip6_hdr *)rcvmhdr.msg_iov[0].iov_base;
usr.sbin/traceroute6/traceroute6.c
1339
struct ip6_hdr *ip;
usr.sbin/traceroute6/traceroute6.c
1343
ip = (struct ip6_hdr *) buf;
usr.sbin/traceroute6/traceroute6.c
1344
hlen = sizeof(struct ip6_hdr);
usr.sbin/traceroute6/traceroute6.c
1402
struct ip6_hdr *hip;
usr.sbin/traceroute6/traceroute6.c
1410
hip = (struct ip6_hdr *)(icp + 1);
usr.sbin/traceroute6/traceroute6.c
1511
get_uphdr(struct ip6_hdr *ip6, u_char *lim)
usr.sbin/traceroute6/traceroute6.c
1521
cp += sizeof(struct ip6_hdr);
usr.sbin/traceroute6/traceroute6.c
293
void *get_uphdr(struct ip6_hdr *, u_char *);