/kernel/linux/linux-5.10/net/ipv6/ |
H A D | exthdrs_core.c | 10 * find out if nexthdr is a well-known extension header or a protocol 13 bool ipv6_ext_hdr(u8 nexthdr) in ipv6_ext_hdr() argument 16 * find out if nexthdr is an extension header or a protocol in ipv6_ext_hdr() 18 return (nexthdr == NEXTHDR_HOP) || in ipv6_ext_hdr() 19 (nexthdr == NEXTHDR_ROUTING) || in ipv6_ext_hdr() 20 (nexthdr == NEXTHDR_FRAGMENT) || in ipv6_ext_hdr() 21 (nexthdr == NEXTHDR_AUTH) || in ipv6_ext_hdr() 22 (nexthdr == NEXTHDR_NONE) || in ipv6_ext_hdr() 23 (nexthdr == NEXTHDR_DEST); in ipv6_ext_hdr() 53 * If it is not NULL *nexthdr i 75 u8 nexthdr = *nexthdrp; ipv6_skip_exthdr() local 192 u8 nexthdr = ipv6_hdr(skb)->nexthdr; ipv6_find_hdr() local [all...] |
H A D | mip6.c | 123 int err = destopt->nexthdr; in mip6_destopt_input() 143 u8 nexthdr; in mip6_destopt_output() local 149 nexthdr = *skb_mac_header(skb); in mip6_destopt_output() 153 dstopt->nexthdr = nexthdr; in mip6_destopt_output() 251 u8 **nexthdr) in mip6_destopt_offset() 261 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_destopt_offset() 265 switch (**nexthdr) { in mip6_destopt_offset() 291 *nexthdr in mip6_destopt_offset() 250 mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **nexthdr) mip6_destopt_offset() argument 361 u8 nexthdr; mip6_rthdr_output() local 386 mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **nexthdr) mip6_rthdr_offset() argument [all...] |
H A D | output_core.c | 64 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) in ip6_find_1stfragopt() argument 70 *nexthdr = &ipv6_hdr(skb)->nexthdr; in ip6_find_1stfragopt() 75 switch (**nexthdr) { in ip6_find_1stfragopt() 102 *nexthdr = &exthdr->nexthdr; in ip6_find_1stfragopt() 138 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
|
H A D | ip6_input.c | 54 switch (ipv6_hdr(skb)->nexthdr) { in ip6_rcv_finish_core() 253 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ip6_rcv_core() 258 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in ip6_rcv_core() 271 if (hdr->nexthdr == NEXTHDR_HOP) { in ip6_rcv_core() 355 void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr, in ip6_protocol_deliver_rcu() argument 373 nexthdr = skb_network_header(skb)[nhoff]; in ip6_protocol_deliver_rcu() 377 raw = raw6_local_deliver(skb, nexthdr); in ip6_protocol_deliver_rcu() 378 ipprot = rcu_dereference(inet6_protos[nexthdr]); in ip6_protocol_deliver_rcu() 420 !ipv6_is_mld(skb, nexthdr, skb_network_header_len(skb))) in ip6_protocol_deliver_rcu() 432 * encapsulation. Use return value as nexthdr in ip6_protocol_deliver_rcu() 530 u8 nexthdr = hdr->nexthdr; ip6_mc_input() local [all...] |
H A D | mcast_snoop.c | 41 u8 nexthdr; in ipv6_mc_check_exthdrs() local 46 if (ip6h->nexthdr != IPPROTO_HOPOPTS) in ipv6_mc_check_exthdrs() 49 nexthdr = ip6h->nexthdr; in ipv6_mc_check_exthdrs() 51 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_mc_check_exthdrs() 56 if (nexthdr != IPPROTO_ICMPV6) in ipv6_mc_check_exthdrs()
|
H A D | ah6.c | 253 int nexthdr = iph->nexthdr; in ipv6_clear_mutable_options() local 258 switch (nexthdr) { in ipv6_clear_mutable_options() 266 nexthdr == NEXTHDR_HOP ? in ipv6_clear_mutable_options() 280 nexthdr = exthdr.opth->nexthdr; in ipv6_clear_mutable_options() 329 u8 nexthdr; in ah6_output() local 379 nexthdr = *skb_mac_header(skb); in ah6_output() 401 ah->nexthdr = nexthdr; in ah6_output() 525 int nexthdr; ah6_input() local [all...] |
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | exthdrs_core.c | 10 * find out if nexthdr is a well-known extension header or a protocol 13 bool ipv6_ext_hdr(u8 nexthdr) in ipv6_ext_hdr() argument 16 * find out if nexthdr is an extension header or a protocol in ipv6_ext_hdr() 18 return (nexthdr == NEXTHDR_HOP) || in ipv6_ext_hdr() 19 (nexthdr == NEXTHDR_ROUTING) || in ipv6_ext_hdr() 20 (nexthdr == NEXTHDR_FRAGMENT) || in ipv6_ext_hdr() 21 (nexthdr == NEXTHDR_AUTH) || in ipv6_ext_hdr() 22 (nexthdr == NEXTHDR_NONE) || in ipv6_ext_hdr() 23 (nexthdr == NEXTHDR_DEST); in ipv6_ext_hdr() 53 * If it is not NULL *nexthdr i 75 u8 nexthdr = *nexthdrp; ipv6_skip_exthdr() local 192 u8 nexthdr = ipv6_hdr(skb)->nexthdr; ipv6_find_hdr() local [all...] |
H A D | output_core.c | 58 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) in ip6_find_1stfragopt() argument 64 *nexthdr = &ipv6_hdr(skb)->nexthdr; in ip6_find_1stfragopt() 69 switch (**nexthdr) { in ip6_find_1stfragopt() 96 *nexthdr = &exthdr->nexthdr; in ip6_find_1stfragopt() 132 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
|
H A D | ip6_input.c | 53 switch (ipv6_hdr(skb)->nexthdr) { in ip6_rcv_finish_core() 262 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ip6_rcv_core() 267 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in ip6_rcv_core() 279 if (hdr->nexthdr == NEXTHDR_HOP) { in ip6_rcv_core() 363 void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr, in ip6_protocol_deliver_rcu() argument 382 nexthdr = skb_network_header(skb)[nhoff]; in ip6_protocol_deliver_rcu() 386 raw = raw6_local_deliver(skb, nexthdr); in ip6_protocol_deliver_rcu() 387 ipprot = rcu_dereference(inet6_protos[nexthdr]); in ip6_protocol_deliver_rcu() 425 !ipv6_is_mld(skb, nexthdr, skb_network_header_len(skb))) { in ip6_protocol_deliver_rcu() 443 * encapsulation. Use return value as nexthdr in ip6_protocol_deliver_rcu() 545 u8 nexthdr = hdr->nexthdr; ip6_mc_input() local [all...] |
H A D | mcast_snoop.c | 41 u8 nexthdr; in ipv6_mc_check_exthdrs() local 46 if (ip6h->nexthdr != IPPROTO_HOPOPTS) in ipv6_mc_check_exthdrs() 49 nexthdr = ip6h->nexthdr; in ipv6_mc_check_exthdrs() 51 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_mc_check_exthdrs() 56 if (nexthdr != IPPROTO_ICMPV6) in ipv6_mc_check_exthdrs()
|
H A D | ah6.c | 250 int nexthdr = iph->nexthdr; in ipv6_clear_mutable_options() local 255 switch (nexthdr) { in ipv6_clear_mutable_options() 263 nexthdr == NEXTHDR_HOP ? in ipv6_clear_mutable_options() 277 nexthdr = exthdr.opth->nexthdr; in ipv6_clear_mutable_options() 326 u8 nexthdr; in ah6_output() local 376 nexthdr = *skb_mac_header(skb); in ah6_output() 398 ah->nexthdr = nexthdr; in ah6_output() 522 int nexthdr; ah6_input() local [all...] |
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | ip6t_ipv6header.c | 32 u8 nexthdr; in ipv6header_mt6() local 38 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6header_mt6() 45 while (nf_ip6_ext_hdr(nexthdr)) { in ipv6header_mt6() 51 if (nexthdr == NEXTHDR_NONE) { in ipv6header_mt6() 59 if (nexthdr == NEXTHDR_ESP) { in ipv6header_mt6() 71 if (nexthdr == NEXTHDR_FRAGMENT) in ipv6header_mt6() 73 else if (nexthdr == NEXTHDR_AUTH) in ipv6header_mt6() 79 switch (nexthdr) { in ipv6header_mt6() 99 nexthdr in ipv6header_mt6() [all...] |
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | ip6t_ipv6header.c | 32 u8 nexthdr; in ipv6header_mt6() local 38 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6header_mt6() 45 while (nf_ip6_ext_hdr(nexthdr)) { in ipv6header_mt6() 51 if (nexthdr == NEXTHDR_NONE) { in ipv6header_mt6() 59 if (nexthdr == NEXTHDR_ESP) { in ipv6header_mt6() 71 if (nexthdr == NEXTHDR_FRAGMENT) in ipv6header_mt6() 73 else if (nexthdr == NEXTHDR_AUTH) in ipv6header_mt6() 79 switch (nexthdr) { in ipv6header_mt6() 99 nexthdr in ipv6header_mt6() [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | nip_input.c | 66 nip_dbg("try to early demux skb, nexthdr=0x%x", nipcb(skb)->nexthdr); in nip_rcv_finish() 67 ipprot = rcu_dereference(ninet_protos[nipcb(skb)->nexthdr]); in nip_rcv_finish() 105 nip_dbg("check in failure, errcode=%d, Drop a packet (nexthdr=%u, hdr_len=%u)", in nip_rcv() 106 offset, niph.nexthdr, niph.hdr_len); in nip_rcv() 110 if (niph.nexthdr != IPPROTO_UDP && niph.nexthdr != IPPROTO_TCP && in nip_rcv() 111 niph.nexthdr != IPPROTO_NIP_ICMP) { in nip_rcv() 112 nip_dbg("nexthdr(%u) invalid, Drop a packet", niph.nexthdr); in nip_rcv() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | parse_varlen.c | 83 uint64_t nexthdr; in parse_ipv6() local 89 nexthdr = ip6h->nexthdr; in parse_ipv6() 91 if (nexthdr == IPPROTO_IPIP) { in parse_ipv6() 96 nexthdr = iph->protocol; in parse_ipv6() 97 } else if (nexthdr == IPPROTO_IPV6) { in parse_ipv6() 102 nexthdr = ip6h->nexthdr; in parse_ipv6() 105 if (nexthdr == IPPROTO_TCP) in parse_ipv6() 107 else if (nexthdr in parse_ipv6() [all...] |
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | parse_varlen.c | 83 uint64_t nexthdr; in parse_ipv6() local 89 nexthdr = ip6h->nexthdr; in parse_ipv6() 91 if (nexthdr == IPPROTO_IPIP) { in parse_ipv6() 96 nexthdr = iph->protocol; in parse_ipv6() 97 } else if (nexthdr == IPPROTO_IPV6) { in parse_ipv6() 102 nexthdr = ip6h->nexthdr; in parse_ipv6() 105 if (nexthdr == IPPROTO_TCP) in parse_ipv6() 107 else if (nexthdr in parse_ipv6() [all...] |
/kernel/linux/linux-6.6/net/6lowpan/ |
H A D | nhc.c | 49 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_check_compression() 66 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_do_compression() 131 hdr->nexthdr = nhc->nexthdr; in lowpan_nhc_do_uncompression() 147 if (lowpan_nexthdr_nhcs[nhc->nexthdr]) { in lowpan_nhc_add() 152 lowpan_nexthdr_nhcs[nhc->nexthdr] = nhc; in lowpan_nhc_add() 163 lowpan_nexthdr_nhcs[nhc->nexthdr] = NULL; in lowpan_nhc_del()
|
/kernel/linux/linux-5.10/net/6lowpan/ |
H A D | nhc.c | 100 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_check_compression() 117 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_do_compression() 182 hdr->nexthdr = nhc->nexthdr; in lowpan_nhc_do_uncompression() 207 if (lowpan_nexthdr_nhcs[nhc->nexthdr]) { in lowpan_nhc_add() 216 lowpan_nexthdr_nhcs[nhc->nexthdr] = nhc; in lowpan_nhc_add() 228 lowpan_nexthdr_nhcs[nhc->nexthdr] = NULL; in lowpan_nhc_del()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | netfilter_ipv6.h | 15 nf_ip6_ext_hdr(u8 nexthdr) in nf_ip6_ext_hdr() argument 16 { return (nexthdr == IPPROTO_HOPOPTS) || in nf_ip6_ext_hdr() 17 (nexthdr == IPPROTO_ROUTING) || in nf_ip6_ext_hdr() 18 (nexthdr == IPPROTO_FRAGMENT) || in nf_ip6_ext_hdr() 19 (nexthdr == IPPROTO_ESP) || in nf_ip6_ext_hdr() 20 (nexthdr == IPPROTO_AH) || in nf_ip6_ext_hdr() 21 (nexthdr == IPPROTO_NONE) || in nf_ip6_ext_hdr() 22 (nexthdr == IPPROTO_DSTOPTS); in nf_ip6_ext_hdr()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | netfilter_ipv6.h | 15 nf_ip6_ext_hdr(u8 nexthdr) in nf_ip6_ext_hdr() argument 16 { return (nexthdr == IPPROTO_HOPOPTS) || in nf_ip6_ext_hdr() 17 (nexthdr == IPPROTO_ROUTING) || in nf_ip6_ext_hdr() 18 (nexthdr == IPPROTO_FRAGMENT) || in nf_ip6_ext_hdr() 19 (nexthdr == IPPROTO_ESP) || in nf_ip6_ext_hdr() 20 (nexthdr == IPPROTO_AH) || in nf_ip6_ext_hdr() 21 (nexthdr == IPPROTO_NONE) || in nf_ip6_ext_hdr() 22 (nexthdr == IPPROTO_DSTOPTS); in nf_ip6_ext_hdr()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_conntrack_ovs.c | 41 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in nf_ct_helper() local 45 ofs = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in nf_ct_helper() 52 proto = nexthdr; in nf_ct_helper() 125 if (ipv6_hdr(skb)->nexthdr == NEXTHDR_HOP) { in nf_ct_skb_network_trim() 172 *proto = ipv6_hdr(skb)->nexthdr; in nf_ct_handle_fragments()
|
H A D | xt_AUDIT.c | 50 u8 nexthdr; in audit_ip6() local 57 nexthdr = ih->nexthdr; in audit_ip6() 58 ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h), &nexthdr, &frag_off); in audit_ip6() 61 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_AUDIT.c | 50 u8 nexthdr; in audit_ip6() local 57 nexthdr = ih->nexthdr; in audit_ip6() 58 ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h), &nexthdr, &frag_off); in audit_ip6() 61 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6()
|
/kernel/linux/linux-5.10/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 136 u8 nexthdr; in ip_set_get_ip6_port() local 139 nexthdr = ipv6_hdr(skb)->nexthdr; in ip_set_get_ip6_port() 142 sizeof(struct ipv6hdr), &nexthdr, in ip_set_get_ip6_port() 147 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
|
/kernel/linux/linux-6.6/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 136 u8 nexthdr; in ip_set_get_ip6_port() local 139 nexthdr = ipv6_hdr(skb)->nexthdr; in ip_set_get_ip6_port() 142 sizeof(struct ipv6hdr), &nexthdr, in ip_set_get_ip6_port() 147 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
|