| /net/ipv6/ |
| A D | exthdrs_core.c | 13 bool ipv6_ext_hdr(u8 nexthdr) in ipv6_ext_hdr() argument 23 (nexthdr == NEXTHDR_DEST); in ipv6_ext_hdr() 75 u8 nexthdr = *nexthdrp; in ipv6_skip_exthdr() local 107 nexthdr = hp->nexthdr; in ipv6_skip_exthdr() 111 *nexthdrp = nexthdr; in ipv6_skip_exthdr() 192 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6_find_hdr() local 205 nexthdr = ip6->nexthdr; in ipv6_find_hdr() 213 if ((!ipv6_ext_hdr(nexthdr)) || nexthdr == NEXTHDR_NONE) { in ipv6_find_hdr() 257 return hp->nexthdr; in ipv6_find_hdr() 274 nexthdr = hp->nexthdr; in ipv6_find_hdr() [all …]
|
| A D | ip6_input.c | 53 switch (ipv6_hdr(skb)->nexthdr) { in ip6_rcv_finish_core() 268 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in ip6_rcv_core() 280 if (hdr->nexthdr == NEXTHDR_HOP) { in ip6_rcv_core() 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() 447 nexthdr = ret; in ip6_protocol_deliver_rcu() 550 u8 nexthdr = hdr->nexthdr; in ip6_mc_input() local 560 if (!ipv6_ext_hdr(nexthdr)) { in ip6_mc_input() 565 &nexthdr, &frag_off); in ip6_mc_input() [all …]
|
| 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()
|
| 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()
|
| 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() 292 int err = rt2->rt_hdr.nexthdr; in mip6_rthdr_input() 310 u8 nexthdr; in mip6_rthdr_output() local 315 nexthdr = *skb_mac_header(skb); in mip6_rthdr_output() 319 rt2->rt_hdr.nexthdr = nexthdr; in mip6_rthdr_output()
|
| A D | ah6.c | 247 int nexthdr = iph->nexthdr; in ipv6_clear_mutable_options() local 252 switch (nexthdr) { in ipv6_clear_mutable_options() 260 nexthdr == NEXTHDR_HOP ? in ipv6_clear_mutable_options() 274 nexthdr = exthdr.opth->nexthdr; in ipv6_clear_mutable_options() 323 u8 nexthdr; in ah6_output() local 373 nexthdr = *skb_mac_header(skb); in ah6_output() 395 ah->nexthdr = nexthdr; in ah6_output() 474 err = ah->nexthdr; in ah6_input_done() 519 int nexthdr; in ah6_input() local 542 nexthdr = ah->nexthdr; in ah6_input() [all …]
|
| A D | ip6_offload.c | 65 proto = opth->nexthdr; in ipv6_gro_pull_exthdrs() 100 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs() 139 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 206 proto = iph->nexthdr; in ipv6_exthdrs_len() 217 proto = opth->nexthdr; in ipv6_exthdrs_len() 245 proto = iph->nexthdr; in ipv6_gro_receive() 285 iph->nexthdr != iph2->nexthdr) { in ipv6_gro_receive() 368 hop_jumbo->nexthdr = iph->nexthdr; in ipv6_gro_complete() 374 iph->nexthdr = NEXTHDR_HOP; in ipv6_gro_complete()
|
| A D | rpl.c | 38 outhdr->nexthdr = inhdr->nexthdr; in ipv6_rpl_srh_decompress() 98 outhdr->nexthdr = inhdr->nexthdr; in ipv6_rpl_srh_compress()
|
| A D | ip6_output.c | 316 hop_jumbo->nexthdr = proto; in ip6_xmit() 343 hdr->nexthdr = proto; in ip6_xmit() 421 u8 nexthdr = hdr->nexthdr; in ip6_forward_proxy_check() local 722 iter->nexthdr = nexthdr; in ip6_fraglist_init() 730 fh->nexthdr = nexthdr; in ip6_fraglist_init() 758 fh->nexthdr = iter->nexthdr; in ip6_fraglist_prepare() 774 state->nexthdr = nexthdr; in ip6_frag_init() 843 fh->nexthdr = state->nexthdr; in ip6_frag_next() 879 u8 *prevhdr, nexthdr = 0; in ip6_fragment() local 885 nexthdr = *prevhdr; in ip6_fragment() [all …]
|
| A D | seg6_iptunnel.c | 177 hdr->nexthdr = NEXTHDR_ROUTING; in __seg6_do_srh_encap() 182 isrh->nexthdr = proto; in __seg6_do_srh_encap() 273 hdr->nexthdr = proto; in seg6_do_srh_encap_red() 281 hdr->nexthdr = NEXTHDR_ROUTING; in seg6_do_srh_encap_red() 310 isrh->nexthdr = proto; in seg6_do_srh_encap_red() 359 isrh->nexthdr = hdr->nexthdr; in __seg6_do_srh_inline() 360 hdr->nexthdr = NEXTHDR_ROUTING; in __seg6_do_srh_inline() 583 fl6.flowi6_proto = hdr->nexthdr; in seg6_output_core()
|
| A D | udp_offload.c | 27 u8 nexthdr; in udp6_ufo_fragment() local 90 nexthdr = *prevhdr; in udp6_ufo_fragment() 102 fptr->nexthdr = nexthdr; in udp6_ufo_fragment()
|
| /net/ipv6/netfilter/ |
| 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 = hp->nexthdr; in ipv6header_mt6() 106 if (nexthdr != NEXTHDR_NONE && nexthdr != NEXTHDR_ESP) in ipv6header_mt6()
|
| A D | nf_conntrack_reasm.c | 398 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in find_prev_fhdr() local 400 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr() 405 while (nexthdr != NEXTHDR_FRAGMENT) { in find_prev_fhdr() 409 if (!ipv6_ext_hdr(nexthdr)) { in find_prev_fhdr() 412 if (nexthdr == NEXTHDR_NONE) { in find_prev_fhdr() 422 if (nexthdr == NEXTHDR_AUTH) in find_prev_fhdr() 427 prevhdr = nexthdr; in find_prev_fhdr() 430 nexthdr = hdr.nexthdr; in find_prev_fhdr() 448 u8 nexthdr = NEXTHDR_FRAGMENT; in nf_ct_frag6_gather() local 468 if (ipv6frag_thdr_truncated(skb, fhoff, &nexthdr)) { in nf_ct_frag6_gather()
|
| /net/6lowpan/ |
| 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()
|
| A D | nhc.h | 29 .nexthdr = _nexthdr, \ 62 u8 nexthdr; member 76 struct lowpan_nhc *lowpan_nhc_by_nexthdr(u8 nexthdr);
|
| /net/xfrm/ |
| A D | xfrm_input.c | 148 switch (nexthdr) { in xfrm_parse_spi() 200 XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr; in xfrm4_remove_beet_encap() 540 if (xfrm_parse_spi(skb, nexthdr, &spi, &seq)) { in xfrm_input() 654 nexthdr = x->type_offload->input_tail(x, skb); in xfrm_input() 658 nexthdr = x->type->input(x, skb); in xfrm_input() 659 if (nexthdr == -EINPROGRESS) in xfrm_input() 666 if (nexthdr < 0) { in xfrm_input() 667 if (nexthdr == -EBADMSG) { in xfrm_input() 692 XFRM_MODE_SKB_CB(skb)->protocol = nexthdr; in xfrm_input() 714 err = xfrm_parse_spi(skb, nexthdr, &spi, &seq); in xfrm_input() [all …]
|
| A D | xfrm_output.c | 90 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_rthdr_offset() 95 switch (**nexthdr) { in mip6_rthdr_offset() 134 *nexthdr = &exthdr->nexthdr; in mip6_rthdr_offset() 255 ph->nexthdr = top_iph->protocol; in xfrm4_beet_encap_add() 330 offsetof(struct ipv6hdr, nexthdr); in xfrm6_tunnel_encap_add() 369 offsetof(struct ipv6hdr, nexthdr); in xfrm6_beet_encap_add() 382 ph->nexthdr = top_iph->nexthdr; in xfrm6_beet_encap_add() 386 top_iph->nexthdr = IPPROTO_BEETPH; in xfrm6_beet_encap_add() 706 xo->inner_ipproto = ipv6_hdr(skb)->nexthdr; in xfrm_get_inner_ipproto() 735 xo->inner_ipproto = inner_ipv6_hdr(skb)->nexthdr; in xfrm_get_inner_ipproto() [all …]
|
| /net/netfilter/ |
| 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()
|
| 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()
|
| A D | xt_HMARK.c | 172 int nexthdr; in hmark_pkt_set_htuple_ipv6() local 175 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); in hmark_pkt_set_htuple_ipv6() 176 if (nexthdr < 0) in hmark_pkt_set_htuple_ipv6() 179 if ((flag & IP6_FH_F_FRAG) || (nexthdr != IPPROTO_ICMPV6)) in hmark_pkt_set_htuple_ipv6() 188 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); in hmark_pkt_set_htuple_ipv6() 189 if (nexthdr < 0) in hmark_pkt_set_htuple_ipv6() 199 t->proto = nexthdr; in hmark_pkt_set_htuple_ipv6()
|
| A D | nf_nat_ovs.c | 35 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in nf_ct_nat_execute() local 38 &nexthdr, &frag_off); in nf_ct_nat_execute() 40 if (hdrlen >= 0 && nexthdr == IPPROTO_ICMPV6) { in nf_ct_nat_execute()
|
| A D | xt_TCPOPTSTRIP.c | 100 u_int8_t nexthdr; in tcpoptstrip_tg6() local 103 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6() 104 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
|
| /net/netfilter/ipset/ |
| 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()
|
| /net/bridge/netfilter/ |
| A D | ebt_log.c | 118 uint8_t nexthdr; in ebt_log_packet() local 128 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet() 129 nexthdr = ih->nexthdr; in ebt_log_packet() 130 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr, &frag_off); in ebt_log_packet() 133 print_ports(skb, nexthdr, offset_ph); in ebt_log_packet()
|
| A D | ebt_ip6.c | 63 uint8_t nexthdr = ih6->nexthdr; in ebt_ip6_mt() local 67 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); in ebt_ip6_mt() 70 if (NF_INVF(info, EBT_IP6_PROTO, info->protocol != nexthdr)) in ebt_ip6_mt()
|