/Linux-v4.19/net/ipv6/ |
D | exthdrs_core.c | 12 bool ipv6_ext_hdr(u8 nexthdr) in ipv6_ext_hdr() argument 17 return (nexthdr == NEXTHDR_HOP) || in ipv6_ext_hdr() 18 (nexthdr == NEXTHDR_ROUTING) || in ipv6_ext_hdr() 19 (nexthdr == NEXTHDR_FRAGMENT) || in ipv6_ext_hdr() 20 (nexthdr == NEXTHDR_AUTH) || in ipv6_ext_hdr() 21 (nexthdr == NEXTHDR_NONE) || in ipv6_ext_hdr() 22 (nexthdr == NEXTHDR_DEST); in ipv6_ext_hdr() 74 u8 nexthdr = *nexthdrp; in ipv6_skip_exthdr() local 78 while (ipv6_ext_hdr(nexthdr)) { in ipv6_skip_exthdr() 82 if (nexthdr == NEXTHDR_NONE) in ipv6_skip_exthdr() [all …]
|
D | mip6.c | 135 int err = destopt->nexthdr; in mip6_destopt_input() 155 u8 nexthdr; in mip6_destopt_output() local 161 nexthdr = *skb_mac_header(skb); in mip6_destopt_output() 165 dstopt->nexthdr = nexthdr; in mip6_destopt_output() 263 u8 **nexthdr) in mip6_destopt_offset() argument 273 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_destopt_offset() 277 switch (**nexthdr) { in mip6_destopt_offset() 303 *nexthdr = &exthdr->nexthdr; in mip6_destopt_offset() 355 int err = rt2->rt_hdr.nexthdr; in mip6_rthdr_input() 373 u8 nexthdr; in mip6_rthdr_output() local [all …]
|
D | ip6_input.c | 58 ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]); in ip6_rcv_finish_core() 224 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ip6_rcv_core() 229 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in ip6_rcv_core() 242 if (hdr->nexthdr == NEXTHDR_HOP) { in ip6_rcv_core() 328 int nexthdr; in ip6_input_finish() local 342 nexthdr = skb_network_header(skb)[nhoff]; in ip6_input_finish() 345 raw = raw6_local_deliver(skb, nexthdr); in ip6_input_finish() 346 ipprot = rcu_dereference(inet6_protos[nexthdr]); in ip6_input_finish() 376 !ipv6_is_mld(skb, nexthdr, skb_network_header_len(skb))) in ip6_input_finish() 391 nexthdr = ret; in ip6_input_finish() [all …]
|
D | output_core.c | 79 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) in ip6_find_1stfragopt() argument 85 *nexthdr = &ipv6_hdr(skb)->nexthdr; in ip6_find_1stfragopt() 90 switch (**nexthdr) { in ip6_find_1stfragopt() 117 *nexthdr = &exthdr->nexthdr; in ip6_find_1stfragopt() 153 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
|
D | mcast_snoop.c | 51 u8 nexthdr; in ipv6_mc_check_exthdrs() local 56 if (ip6h->nexthdr != IPPROTO_HOPOPTS) in ipv6_mc_check_exthdrs() 59 nexthdr = ip6h->nexthdr; in ipv6_mc_check_exthdrs() 61 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_mc_check_exthdrs() 66 if (nexthdr != IPPROTO_ICMPV6) in ipv6_mc_check_exthdrs()
|
D | xfrm6_mode_beet.c | 30 iph->nexthdr = XFRM_MODE_SKB_CB(skb)->protocol; in xfrm6_beet_make_header() 55 offsetof(struct ipv6hdr, nexthdr); in xfrm6_beet_output() 68 ph->nexthdr = top_iph->nexthdr; in xfrm6_beet_output() 72 top_iph->nexthdr = IPPROTO_BEETPH; in xfrm6_beet_output()
|
D | ah6.c | 265 int nexthdr = iph->nexthdr; in ipv6_clear_mutable_options() local 270 switch (nexthdr) { in ipv6_clear_mutable_options() 278 nexthdr == NEXTHDR_HOP ? in ipv6_clear_mutable_options() 292 nexthdr = exthdr.opth->nexthdr; in ipv6_clear_mutable_options() 341 u8 nexthdr; in ah6_output() local 391 nexthdr = *skb_mac_header(skb); in ah6_output() 413 ah->nexthdr = nexthdr; in ah6_output() 492 err = ah->nexthdr; in ah6_input_done() 537 int nexthdr; in ah6_input() local 560 nexthdr = ah->nexthdr; in ah6_input() [all …]
|
D | xfrm6_policy.c | 132 u8 nexthdr; in _decode_session6() local 135 nhoff = offsetof(struct ipv6hdr, nexthdr); in _decode_session6() 137 nexthdr = nh[nhoff]; in _decode_session6() 154 switch (nexthdr) { in _decode_session6() 162 nexthdr = exthdr->nexthdr; in _decode_session6() 180 fl6->flowi6_proto = nexthdr; in _decode_session6() 193 fl6->flowi6_proto = nexthdr; in _decode_session6() 207 fl6->flowi6_proto = nexthdr; in _decode_session6() 217 fl6->flowi6_proto = nexthdr; in _decode_session6()
|
D | ip6_offload.c | 51 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs() 87 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 150 proto = iph->nexthdr; in ipv6_exthdrs_len() 162 proto = opth->nexthdr; in ipv6_exthdrs_len() 196 proto = iph->nexthdr; in ipv6_gro_receive() 235 memcmp(&iph->nexthdr, &iph2->nexthdr, in ipv6_gro_receive() 236 nlen - offsetof(struct ipv6hdr, nexthdr))) { in ipv6_gro_receive()
|
D | udp_offload.c | 28 u8 nexthdr; in udp6_ufo_fragment() local 91 nexthdr = *prevhdr; in udp6_ufo_fragment() 103 fptr->nexthdr = nexthdr; in udp6_ufo_fragment()
|
/Linux-v4.19/net/ipv6/netfilter/ |
D | ip6t_ipv6header.c | 35 u8 nexthdr; in ipv6header_mt6() local 41 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6header_mt6() 48 while (ip6t_ext_hdr(nexthdr)) { in ipv6header_mt6() 54 if (nexthdr == NEXTHDR_NONE) { in ipv6header_mt6() 62 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 = hp->nexthdr; in ipv6header_mt6() 106 if (nexthdr != NEXTHDR_NONE && nexthdr != NEXTHDR_ESP) in ipv6header_mt6()
|
D | nf_nat_l3proto_ipv6.c | 86 u8 nexthdr; in nf_nat_ipv6_manip_pkt() local 92 nexthdr = ipv6h->nexthdr; in nf_nat_ipv6_manip_pkt() 94 &nexthdr, &frag_off); in nf_nat_ipv6_manip_pkt() 230 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); in nf_nat_icmpv6_reply_translation() 263 u8 nexthdr; in nf_nat_ipv6_fn() local 275 nexthdr = ipv6_hdr(skb)->nexthdr; in nf_nat_ipv6_fn() 277 &nexthdr, &frag_off); in nf_nat_ipv6_fn() 279 if (hdrlen >= 0 && nexthdr == IPPROTO_ICMPV6) { in nf_nat_ipv6_fn()
|
/Linux-v4.19/include/linux/netfilter_ipv6/ |
D | ip6_tables.h | 40 ip6t_ext_hdr(u8 nexthdr) in ip6t_ext_hdr() argument 41 { return (nexthdr == IPPROTO_HOPOPTS) || in ip6t_ext_hdr() 42 (nexthdr == IPPROTO_ROUTING) || in ip6t_ext_hdr() 43 (nexthdr == IPPROTO_FRAGMENT) || in ip6t_ext_hdr() 44 (nexthdr == IPPROTO_ESP) || in ip6t_ext_hdr() 45 (nexthdr == IPPROTO_AH) || in ip6t_ext_hdr() 46 (nexthdr == IPPROTO_NONE) || in ip6t_ext_hdr() 47 (nexthdr == IPPROTO_DSTOPTS); in ip6t_ext_hdr()
|
/Linux-v4.19/samples/bpf/ |
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 == IPPROTO_UDP) in parse_ipv6()
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_input.c | 168 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument 173 switch (nexthdr) { in xfrm_parse_spi() 223 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 292 if ((err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { in xfrm_input() 322 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { in xfrm_input() 337 x = xfrm_state_lookup(net, mark, daddr, spi, nexthdr, family); in xfrm_input() 392 nexthdr = x->type_offload->input_tail(x, skb); in xfrm_input() 394 nexthdr = x->type->input(x, skb); in xfrm_input() 396 if (nexthdr == -EINPROGRESS) in xfrm_input() 402 if (nexthdr <= 0) { in xfrm_input() [all …]
|
/Linux-v4.19/net/6lowpan/ |
D | nhc.c | 105 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_check_compression() 122 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; in lowpan_nhc_do_compression() 187 hdr->nexthdr = nhc->nexthdr; in lowpan_nhc_do_uncompression() 212 if (lowpan_nexthdr_nhcs[nhc->nexthdr]) { in lowpan_nhc_add() 221 lowpan_nexthdr_nhcs[nhc->nexthdr] = nhc; in lowpan_nhc_add() 233 lowpan_nexthdr_nhcs[nhc->nexthdr] = NULL; in lowpan_nhc_del()
|
D | nhc.h | 31 .nexthdr = _nexthdr, \ 70 const u8 nexthdr; member 86 struct lowpan_nhc *lowpan_nhc_by_nexthdr(u8 nexthdr);
|
/Linux-v4.19/net/netfilter/ |
D | xt_AUDIT.c | 53 u8 nexthdr; in audit_ip6() local 60 nexthdr = ih->nexthdr; in audit_ip6() 61 ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h), &nexthdr, &frag_off); in audit_ip6() 64 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6()
|
D | xt_TCPOPTSTRIP.c | 104 u_int8_t nexthdr; in tcpoptstrip_tg6() local 107 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6() 108 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
|
D | xt_HMARK.c | 175 int nexthdr; in hmark_pkt_set_htuple_ipv6() local 178 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); in hmark_pkt_set_htuple_ipv6() 179 if (nexthdr < 0) in hmark_pkt_set_htuple_ipv6() 182 if ((flag & IP6_FH_F_FRAG) || (nexthdr != IPPROTO_ICMPV6)) in hmark_pkt_set_htuple_ipv6() 191 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); in hmark_pkt_set_htuple_ipv6() 192 if (nexthdr < 0) in hmark_pkt_set_htuple_ipv6() 202 t->proto = nexthdr; in hmark_pkt_set_htuple_ipv6()
|
/Linux-v4.19/net/netfilter/ipset/ |
D | ip_set_getport.c | 135 u8 nexthdr; in ip_set_get_ip6_port() local 138 nexthdr = ipv6_hdr(skb)->nexthdr; in ip_set_get_ip6_port() 141 sizeof(struct ipv6hdr), &nexthdr, in ip_set_get_ip6_port() 146 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
|
/Linux-v4.19/net/bridge/netfilter/ |
D | ebt_log.c | 117 uint8_t nexthdr; in ebt_log_packet() local 127 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet() 128 nexthdr = ih->nexthdr; in ebt_log_packet() 129 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr, &frag_off); in ebt_log_packet() 132 print_ports(skb, nexthdr, offset_ph); in ebt_log_packet()
|
D | ebt_ip6.c | 62 uint8_t nexthdr = ih6->nexthdr; in ebt_ip6_mt() local 66 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); in ebt_ip6_mt() 69 if (NF_INVF(info, EBT_IP6_PROTO, info->protocol != nexthdr)) in ebt_ip6_mt()
|
/Linux-v4.19/include/uapi/linux/ |
D | ipv6.h | 49 __u8 nexthdr; member 62 __u8 nexthdr; member 129 __u8 nexthdr; member
|
/Linux-v4.19/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_map_data.c | 137 csum_field = rmnet_map_get_csum_field(ip6h->nexthdr, txporthdr); in rmnet_map_ipv6_dl_csum_trailer() 151 length = (ip6h->nexthdr == IPPROTO_UDP) ? in rmnet_map_ipv6_dl_csum_trailer() 155 length, ip6h->nexthdr, 0)); in rmnet_map_ipv6_dl_csum_trailer() 164 switch (ip6h->nexthdr) { in rmnet_map_ipv6_dl_csum_trailer() 240 if (ip6h->nexthdr == IPPROTO_TCP || ip6h->nexthdr == IPPROTO_UDP) { in rmnet_map_complement_ipv6_txporthdr_csum_field() 241 csum = (u16 *)rmnet_map_get_csum_field(ip6h->nexthdr, txphdr); in rmnet_map_complement_ipv6_txporthdr_csum_field()
|