/freebsd/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 356 ip6->ip6_nxt = IPPROTO_TCP; in parseipv6() 360 ip6->ip6_nxt = IPPROTO_UDP; in parseipv6() 364 ip6->ip6_nxt = IPPROTO_ICMPV6; in parseipv6() 368 ip6->ip6_nxt = atoi(*cpp); in parseipv6() 371 ip6->ip6_nxt = IPPROTO_IPV6; in parseipv6() 376 switch (ip6->ip6_nxt) in parseipv6() 391 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 401 if (ip6->ip6_nxt == IPPROTO_TCP) { in parseipv6() 416 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 435 if (ip6->ip6_nxt == IPPROTO_TCP) { in parseipv6() [all …]
|
/freebsd/sys/netipsec/ |
H A D | udpencap.c | 165 ip6->ip6_nxt = IPPROTO_ESP; in udp_ipsec_input() 166 off = offsetof(struct ip6_hdr, ip6_nxt); in udp_ipsec_input() 298 KASSERT(ip6->ip6_nxt == IPPROTO_ESP, in udp_ipsec_output() 299 ("unexpected next header type %d", ip6->ip6_nxt)); in udp_ipsec_output() 301 ip6->ip6_nxt = IPPROTO_UDP; in udp_ipsec_output() 303 m->m_pkthdr.len - hlen, ip6->ip6_nxt, 0); in udp_ipsec_output()
|
H A D | ipsec_output.c | 268 off = offsetof(struct ip6_hdr, ip6_nxt); in ipsec4_perform_request() 652 off = offsetof(struct ip6_hdr, ip6_nxt); in ipsec6_perform_request() 1160 ip6->ip6_nxt = proto; in ipsec_encap()
|
H A D | xform_tcp.c | 171 if (ip6->ip6_nxt == IPPROTO_UDP) in ip6_pseudo_compute()
|
/freebsd/contrib/tcpdump/ |
H A D | print-ip6.c | 62 nh = GET_U_1(ip6->ip6_nxt); in ip6_finddst() 190 nh = GET_U_1(ip6->ip6_nxt); in nextproto6_cksum() 290 nh = GET_U_1(ip6->ip6_nxt); in ip6_print()
|
H A D | ip6.h | 94 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt macro
|
/freebsd/sys/netinet6/ |
H A D | ip6_forward.c | 121 ip6->ip6_nxt, in ip6_forward() 230 ip6->ip6_nxt, in ip6_forward() 303 ip6->ip6_nxt, if_name(m->m_pkthdr.rcvif), in ip6_forward()
|
H A D | ip6_input.c | 620 IP6STAT_INC2(ip6s_nxthist, ip6->ip6_nxt); in ip6_input() 831 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_input() 835 nxt = ip6->ip6_nxt; in ip6_input() 1400 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_savecontrol() 1423 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr); in ip6_savecontrol() 1597 return (offsetof(struct ip6_hdr, ip6_nxt)); in ip6_get_prevhdr() 1602 nxt = ip6->ip6_nxt; in ip6_get_prevhdr() 1645 *nxtp = ip6.ip6_nxt; in ip6_nexthdr()
|
H A D | ip6_gre.c | 361 sc->gre_oip6.ip6_nxt = IPPROTO_UDP; in in6_gre_attach() 367 sc->gre_oip6.ip6_nxt = IPPROTO_GRE; in in6_gre_attach()
|
H A D | ip6_fastfwd.c | 106 ip6->ip6_nxt == IPPROTO_HOPOPTS || in ip6_tryforward()
|
H A D | raw_ip6.c | 484 ip6->ip6_nxt = inp->inp_ip_p; in rip6_send() 512 *p = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen); in rip6_send()
|
H A D | in6_rss.c | 244 proto = ip6->ip6_nxt; in rss_mbuf_software_hash_v6()
|
H A D | in6_gif.c | 304 ip6->ip6_nxt = proto; in in6_gif_output()
|
H A D | ip6_output.c | 584 nexthdrp = &ip6->ip6_nxt; in ip6_output() 615 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt; in ip6_output() 616 ip6->ip6_nxt = IPPROTO_DSTOPTS; in ip6_output() 1244 nextproto = ip6->ip6_nxt; in ip6_output() 1245 ip6->ip6_nxt = IPPROTO_FRAGMENT; in ip6_output()
|
/freebsd/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 122 proto = ip6->ip6_nxt; in nptv6_getlasthdr() 177 ip6->ip6_nxt); in nptv6_translate_icmpv6() 239 ip6->ip6_nxt); in nptv6_rewrite_internal() 297 ip6->ip6_nxt); in nptv6_rewrite_external() 380 ip6->ip6_nxt); in ipfw_nptv6()
|
/freebsd/sys/netinet/ |
H A D | ip6.h | 88 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt macro
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 567 ip6f.ip6f_nxt = ip6->ip6_nxt; in nat64_fragment6() 568 ip6->ip6_nxt = IPPROTO_FRAGMENT; in nat64_fragment6() 743 oip6->ip6_nxt = IPPROTO_ICMPV6; in nat64_icmp6_reflect() 1112 eip6->ip6_nxt = (ip.ip_p == IPPROTO_ICMP) ? IPPROTO_ICMPV6: ip.ip_p; in nat64_icmp_translate() 1197 proto = ip6->ip6_nxt; in nat64_getlasthdr() 1290 ip6.ip6_nxt = (proto == IPPROTO_ICMP) ? IPPROTO_ICMPV6: proto; in nat64_do_handle_ip4() 1502 proto = ip6i->ip6_nxt; in nat64_handle_icmp6()
|
/freebsd/usr.sbin/ppp/ |
H A D | tcpmss.c | 193 switch (pip6->ip6_nxt) { in tcpmss_Check()
|
/freebsd/sys/netpfil/ipfw/pmod/ |
H A D | tcpmod.c | 126 proto = ip6->ip6_nxt; in tcpmod_ipv6_setmss()
|
/freebsd/sys/netpfil/ipfw/ |
H A D | dn_sched_fq_codel.c | 231 *((uint8_t *) &tuple[0]) = ip6->ip6_nxt; in fq_codel_classify_flow() 236 switch (ip6->ip6_nxt) { in fq_codel_classify_flow()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_fil_freebsd.c | 406 ip6->ip6_nxt = IPPROTO_TCP; in ipf_send_reset() 464 fnew.fin_p = ip6->ip6_nxt; in ipf_send_ip() 636 ip6->ip6_nxt = IPPROTO_ICMPV6; in ipf_send_icmp_err() 1429 sum = in6_cksum(m, ip6->ip6_nxt, off, len); in ipf_pcksum6()
|
H A D | ip_nat6.c | 1425 p = oip6->ip6_nxt; in ipf_nat6_icmperrorlookup() 1584 if (oip6->ip6_nxt == IPPROTO_TCP) { in ipf_nat6_icmperror() 1588 } else if (oip6->ip6_nxt == IPPROTO_UDP) { in ipf_nat6_icmperror() 1595 } else if (oip6->ip6_nxt == IPPROTO_ICMPV6) in ipf_nat6_icmperror() 1763 if (oip6->ip6_nxt == IPPROTO_UDP) { in ipf_nat6_icmperror() 1774 } else if (oip6->ip6_nxt == IPPROTO_TCP) { in ipf_nat6_icmperror() 3681 ip6->ip6_nxt = IPPROTO_UDP; in ipf_nat6_builddivertmp() 3683 ip6->ip6_nxt = IPPROTO_IPIP; in ipf_nat6_builddivertmp()
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_tx.c | 282 switch (ip6->ip6_nxt) { in mlx5e_get_full_header_size() 413 ip_type = ip6->ip6_nxt; in mlx5e_get_vxlan_header_size() 478 ip_type = ip6->ip6_nxt; in mlx5e_get_vxlan_header_size()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_norm.c | 921 ip6->ip6_nxt = proto; in pf_reassemble6() 990 proto = hdr->ip6_nxt; in pf_refragment6() 991 hdr->ip6_nxt = IPPROTO_FRAGMENT; in pf_refragment6() 1249 else if (r->proto && r->proto != h->ip6_nxt) in pf_normalize_ip6() 1290 proto = h->ip6_nxt; in pf_normalize_ip6()
|
/freebsd/sys/dev/gve/ |
H A D | gve_tx.c | 592 is_tcp = (ip6->ip6_nxt == IPPROTO_TCP); in gve_xmit() 593 is_udp = (ip6->ip6_nxt == IPPROTO_UDP); in gve_xmit()
|