/freebsd/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 357 ip6->ip6_nxt = IPPROTO_TCP; in parseipv6() 361 ip6->ip6_nxt = IPPROTO_UDP; in parseipv6() 365 ip6->ip6_nxt = IPPROTO_ICMPV6; in parseipv6() 369 ip6->ip6_nxt = atoi(*cpp); in parseipv6() 372 ip6->ip6_nxt = IPPROTO_IPV6; in parseipv6() 377 switch (ip6->ip6_nxt) in parseipv6() 392 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 402 if (ip6->ip6_nxt == IPPROTO_TCP) { in parseipv6() 417 if (ip6->ip6_nxt == IPPROTO_TCP || ip6->ip6_nxt == IPPROTO_UDP) { in parseipv6() 436 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 | 305 off = offsetof(struct ip6_hdr, ip6_nxt); in ipsec4_perform_request() 723 off = offsetof(struct ip6_hdr, ip6_nxt); in ipsec6_perform_request() 1219 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 | 60 nh = GET_U_1(ip6->ip6_nxt); in ip6_finddst() 188 nh = GET_U_1(ip6->ip6_nxt); in nextproto6_cksum() 285 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() 842 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_input() 846 nxt = ip6->ip6_nxt; in ip6_input() 1411 if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { in ip6_savecontrol() 1434 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr); in ip6_savecontrol() 1608 return (offsetof(struct ip6_hdr, ip6_nxt)); in ip6_get_prevhdr() 1613 nxt = ip6->ip6_nxt; in ip6_get_prevhdr() 1656 *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 | 494 ip6->ip6_nxt = inp->inp_ip_p; in rip6_send() 522 *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 | 563 nexthdrp = &ip6->ip6_nxt; in ip6_output() 594 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt; in ip6_output() 595 ip6->ip6_nxt = IPPROTO_DSTOPTS; in ip6_output() 1249 nextproto = ip6->ip6_nxt; in ip6_output() 1250 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/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/sys/netinet/ |
H A D | ip6.h | 88 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt macro
|
/freebsd/usr.sbin/ppp/ |
H A D | tcpmss.c | 193 switch (pip6->ip6_nxt) { in tcpmss_Check()
|
H A D | ip.c | 243 cproto = pip6->ip6_nxt; in FilterCheck() 591 cproto = pip6->ip6_nxt; in PacketCheck()
|
/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 | 379 ip6->ip6_nxt = IPPROTO_TCP; in ipf_send_reset() 437 fnew.fin_p = ip6->ip6_nxt; in ipf_send_ip() 609 ip6->ip6_nxt = IPPROTO_ICMPV6; in ipf_send_icmp_err() 1393 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 | 283 switch (ip6->ip6_nxt) { in mlx5e_get_full_header_size() 414 ip_type = ip6->ip6_nxt; in mlx5e_get_vxlan_header_size() 479 ip_type = ip6->ip6_nxt; in mlx5e_get_vxlan_header_size()
|
/freebsd/sys/net/altq/ |
H A D | altq_subr.c | 1063 fin6->fi6_proto = ip6->ip6_nxt; 1072 && ip6->ip6_nxt > IPPROTO_IPV6)) 1238 proto = ip6->ip6_nxt;
|