Home
last modified time | relevance | path

Searched refs:ip6_nxt (Results 1 – 25 of 78) sorted by relevance

1234

/freebsd/sbin/ipf/libipf/
H A Dipft_tx.c356 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 Dudpencap.c165 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 Dipsec_output.c268 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 Dxform_tcp.c171 if (ip6->ip6_nxt == IPPROTO_UDP) in ip6_pseudo_compute()
/freebsd/contrib/tcpdump/
H A Dprint-ip6.c62 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 Dip6.h94 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt macro
/freebsd/sys/netinet6/
H A Dip6_forward.c121 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 Dip6_input.c620 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 Dip6_gre.c361 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 Dip6_fastfwd.c106 ip6->ip6_nxt == IPPROTO_HOPOPTS || in ip6_tryforward()
H A Draw_ip6.c484 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 Din6_rss.c244 proto = ip6->ip6_nxt; in rss_mbuf_software_hash_v6()
H A Din6_gif.c304 ip6->ip6_nxt = proto; in in6_gif_output()
H A Dip6_output.c584 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 Dnptv6.c122 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 Dip6.h88 #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt macro
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c567 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 Dtcpmss.c193 switch (pip6->ip6_nxt) { in tcpmss_Check()
/freebsd/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c126 proto = ip6->ip6_nxt; in tcpmod_ipv6_setmss()
/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c231 *((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 Dip_fil_freebsd.c406 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 Dip_nat6.c1425 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 Dmlx5_en_tx.c282 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 Dpf_norm.c921 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 Dgve_tx.c592 is_tcp = (ip6->ip6_nxt == IPPROTO_TCP); in gve_xmit()
593 is_udp = (ip6->ip6_nxt == IPPROTO_UDP); in gve_xmit()

1234