/linux-4.4.14/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 | 55 ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]); in ip6_rcv_finish() 155 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ipv6_rcv() 160 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in ipv6_rcv() 173 if (hdr->nexthdr == NEXTHDR_HOP) { in ipv6_rcv() 207 int nexthdr; in ip6_input_finish() local 220 nexthdr = skb_network_header(skb)[nhoff]; in ip6_input_finish() 222 raw = raw6_local_deliver(skb, nexthdr); in ip6_input_finish() 223 ipprot = rcu_dereference(inet6_protos[nexthdr]); in ip6_input_finish() 241 !ipv6_is_mld(skb, nexthdr, skb_network_header_len(skb))) in ip6_input_finish() 315 u8 nexthdr = hdr->nexthdr; in ip6_mc_input() local [all …]
|
D | output_core.c | 79 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) in ip6_find_1stfragopt() argument 87 *nexthdr = &ipv6_hdr(skb)->nexthdr; in ip6_find_1stfragopt() 91 switch (**nexthdr) { in ip6_find_1stfragopt() 111 *nexthdr = &exthdr->nexthdr; in ip6_find_1stfragopt() 149 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 | ip6_offload.c | 50 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs() 101 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 149 proto = iph->nexthdr; in ipv6_exthdrs_len() 161 proto = opth->nexthdr; in ipv6_exthdrs_len() 195 proto = iph->nexthdr; in ipv6_gro_receive() 233 memcmp(&iph->nexthdr, &iph2->nexthdr, in ipv6_gro_receive() 234 nlen - offsetof(struct ipv6hdr, nexthdr))) { in ipv6_gro_receive()
|
D | ah6.c | 264 int nexthdr = iph->nexthdr; in ipv6_clear_mutable_options() local 269 switch (nexthdr) { in ipv6_clear_mutable_options() 276 nexthdr == NEXTHDR_HOP ? in ipv6_clear_mutable_options() 290 nexthdr = exthdr.opth->nexthdr; in ipv6_clear_mutable_options() 339 u8 nexthdr; in ah6_output() local 389 nexthdr = *skb_mac_header(skb); in ah6_output() 411 ah->nexthdr = nexthdr; in ah6_output() 485 err = ah->nexthdr; in ah6_input_done() 530 int nexthdr; in ah6_input() local 553 nexthdr = ah->nexthdr; in ah6_input() [all …]
|
D | xfrm6_policy.c | 129 u8 nexthdr; in _decode_session6() local 132 nhoff = offsetof(struct ipv6hdr, nexthdr); in _decode_session6() 134 nexthdr = nh[nhoff]; in _decode_session6() 151 switch (nexthdr) { in _decode_session6() 158 nexthdr = exthdr->nexthdr; in _decode_session6() 176 fl6->flowi6_proto = nexthdr; in _decode_session6() 189 fl6->flowi6_proto = nexthdr; in _decode_session6() 203 fl6->flowi6_proto = nexthdr; in _decode_session6() 213 fl6->flowi6_proto = nexthdr; in _decode_session6()
|
D | udp_offload.c | 28 u8 nexthdr; in udp6_ufo_fragment() local 101 nexthdr = *prevhdr; in udp6_ufo_fragment() 113 fptr->nexthdr = nexthdr; in udp6_ufo_fragment()
|
D | icmp.c | 150 __u8 nexthdr = ipv6_hdr(skb)->nexthdr; in is_ineligible() local 156 ptr = ipv6_skip_exthdr(skb, ptr, &nexthdr, &frag_off); in is_ineligible() 159 if (nexthdr == IPPROTO_ICMPV6) { in is_ineligible() 639 u8 nexthdr; in icmpv6_notify() local 645 nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr; in icmpv6_notify() 646 if (ipv6_ext_hdr(nexthdr)) { in icmpv6_notify() 649 &nexthdr, &frag_off); in icmpv6_notify() 667 ipprot = rcu_dereference(inet6_protos[nexthdr]); in icmpv6_notify() 671 raw6_icmp_error(skb, nexthdr, type, code, inner_offset, info); in icmpv6_notify()
|
D | xfrm6_mode_tunnel.c | 41 offsetof(struct ipv6hdr, nexthdr); in xfrm6_mode_tunnel_output() 49 top_iph->nexthdr = xfrm_af2proto(skb_dst(skb)->ops->family); in xfrm6_mode_tunnel_output()
|
D | raw.c | 158 static bool ipv6_raw_deliver(struct sk_buff *skb, int nexthdr) in ipv6_raw_deliver() argument 170 hash = nexthdr & (RAW_HTABLE_SIZE - 1); in ipv6_raw_deliver() 179 sk = __raw_v6_lookup(net, sk, nexthdr, daddr, saddr, inet6_iif(skb)); in ipv6_raw_deliver() 185 switch (nexthdr) { in ipv6_raw_deliver() 222 sk = __raw_v6_lookup(net, sk_next(sk), nexthdr, daddr, saddr, in ipv6_raw_deliver() 230 bool raw6_local_deliver(struct sk_buff *skb, int nexthdr) in raw6_local_deliver() argument 234 raw_sk = sk_head(&raw_v6_hashinfo.ht[nexthdr & (RAW_HTABLE_SIZE - 1)]); in raw6_local_deliver() 235 if (raw_sk && !ipv6_raw_deliver(skb, nexthdr)) in raw6_local_deliver() 359 void raw6_icmp_error(struct sk_buff *skb, int nexthdr, in raw6_icmp_error() argument 367 hash = nexthdr & (RAW_HTABLE_SIZE - 1); in raw6_icmp_error() [all …]
|
D | xfrm6_input.c | 24 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi) in xfrm6_rcv_spi() argument 28 return xfrm_input(skb, nexthdr, spi, 0); in xfrm6_rcv_spi()
|
D | ip6_output.c | 217 hdr->nexthdr = proto; in ip6_xmit() 283 u8 nexthdr = hdr->nexthdr; in ip6_forward_proxy_check() local 287 if (ipv6_ext_hdr(nexthdr)) { in ip6_forward_proxy_check() 288 offset = ipv6_skip_exthdr(skb, sizeof(*hdr), &nexthdr, &frag_off); in ip6_forward_proxy_check() 294 if (nexthdr == IPPROTO_ICMPV6) { in ip6_forward_proxy_check() 572 u8 *prevhdr, nexthdr = 0; in ip6_fragment() local 575 nexthdr = *prevhdr; in ip6_fragment() 661 fh->nexthdr = nexthdr; in ip6_fragment() 686 fh->nexthdr = nexthdr; in ip6_fragment() 799 fh->nexthdr = nexthdr; in ip6_fragment() [all …]
|
D | datagram.c | 593 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in ip6_datagram_recv_specific_ctl() local 599 switch (nexthdr) { in ip6_datagram_recv_specific_ctl() 601 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() 607 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() 613 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() 617 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl()
|
D | ip6_tunnel.c | 481 __u8 nexthdr = ipv6h->nexthdr; in ip6_tnl_parse_tlv_enc_lim() local 484 while (ipv6_ext_hdr(nexthdr) && nexthdr != NEXTHDR_NONE) { in ip6_tnl_parse_tlv_enc_lim() 492 if (nexthdr == NEXTHDR_FRAGMENT) { in ip6_tnl_parse_tlv_enc_lim() 497 } else if (nexthdr == NEXTHDR_AUTH) { in ip6_tnl_parse_tlv_enc_lim() 502 if (nexthdr == NEXTHDR_DEST) { in ip6_tnl_parse_tlv_enc_lim() 523 nexthdr = hdr->nexthdr; in ip6_tnl_parse_tlv_enc_lim() 1158 ipv6h->nexthdr = proto; in ip6_tnl_xmit2()
|
D | esp6.c | 296 u8 nexthdr[2]; in esp_input_done2() local 303 if (skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2)) in esp_input_done2() 307 padlen = nexthdr[0]; in esp_input_done2() 323 err = nexthdr[1]; in esp_input_done2()
|
D | ip6_udp_tunnel.c | 103 ip6h->nexthdr = IPPROTO_UDP; in udp_tunnel6_xmit_skb()
|
D | exthdrs.c | 352 opt->nhoff = (&hdr->nexthdr) - skb_network_header(skb); in ipv6_rthdr_rcv() 676 phdr->rt_hdr.nexthdr = *proto; in ipv6_push_rthdr() 685 h->nexthdr = *proto; in ipv6_push_exthdr()
|
D | xfrm6_output.c | 104 XFRM_MODE_SKB_CB(skb)->protocol = ipv6_hdr(skb)->nexthdr; in xfrm6_extract_output()
|
D | ila.c | 52 switch (ip6h->nexthdr) { in update_ipv6_locator()
|
D | ip6_gre.c | 731 ipv6h->nexthdr = proto; in ip6gre_xmit2() 1186 ipv6h->nexthdr = NEXTHDR_GRE; in ip6gre_header()
|
D | ip6_vti.c | 565 int protocol = iph->nexthdr; in vti6_err()
|
D | ndisc.c | 423 hdr->nexthdr = IPPROTO_ICMPV6; in ip6_nd_hdr()
|
D | ip6mr.c | 2336 iph->nexthdr = IPPROTO_NONE; in ip6mr_get_route()
|
D | mcast.c | 1544 hdr->nexthdr = proto; in ip6_mc_hdr()
|
D | route.c | 1161 .flowi6_proto = iph->nexthdr, in ip6_route_input()
|
/linux-4.4.14/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_conntrack_l3proto_ipv6.c | 76 u8 nexthdr; in ipv6_get_l4proto() local 78 if (skb_copy_bits(skb, nhoff + offsetof(struct ipv6hdr, nexthdr), in ipv6_get_l4proto() 79 &nexthdr, sizeof(nexthdr)) != 0) { in ipv6_get_l4proto() 83 protoff = ipv6_skip_exthdr(skb, extoff, &nexthdr, &frag_off); in ipv6_get_l4proto() 94 *protonum = nexthdr; in ipv6_get_l4proto() 108 u8 nexthdr; in ipv6_helper() local 123 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6_helper() 124 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ipv6_helper() 140 unsigned char pnum = ipv6_hdr(skb)->nexthdr; in ipv6_confirm()
|
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() 239 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); in nf_nat_icmpv6_reply_translation() 278 u8 nexthdr; in nf_nat_ipv6_fn() local 300 nexthdr = ipv6_hdr(skb)->nexthdr; in nf_nat_ipv6_fn() 302 &nexthdr, &frag_off); in nf_nat_ipv6_fn() 304 if (hdrlen >= 0 && nexthdr == IPPROTO_ICMPV6) { in nf_nat_ipv6_fn()
|
D | nf_conntrack_reasm.c | 520 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in find_prev_fhdr() local 522 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr() 527 while (nexthdr != NEXTHDR_FRAGMENT) { in find_prev_fhdr() 531 if (!ipv6_ext_hdr(nexthdr)) { in find_prev_fhdr() 534 if (nexthdr == NEXTHDR_NONE) { in find_prev_fhdr() 544 if (nexthdr == NEXTHDR_AUTH) in find_prev_fhdr() 549 prevhdr = nexthdr; in find_prev_fhdr() 552 nexthdr = hdr.nexthdr; in find_prev_fhdr()
|
D | nf_reject_ipv6.c | 28 proto = oip6h->nexthdr; in nf_reject_ip6_tcphdr_get() 81 ip6h->nexthdr = protocol; in nf_reject_ip6hdr_put() 226 proto = ip6h->nexthdr; in reject6_csum_ok()
|
D | ip6t_SYNPROXY.c | 32 iph->nexthdr = IPPROTO_TCP; in synproxy_build_ip() 331 u8 nexthdr; in ipv6_synproxy_hook() local 345 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6_synproxy_hook() 346 thoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ipv6_synproxy_hook()
|
D | nf_log_ipv6.c | 75 currenthdr = ih->nexthdr; in dump_ipv6_packet() 200 currenthdr = hp->nexthdr; in dump_ipv6_packet()
|
D | ip6t_rpfilter.c | 38 .flowi6_proto = iph->nexthdr, in rpfilter_lookup_reverse6()
|
/linux-4.4.14/include/linux/netfilter_ipv6/ |
D | ip6_tables.h | 38 ip6t_ext_hdr(u8 nexthdr) in ip6t_ext_hdr() argument 39 { return (nexthdr == IPPROTO_HOPOPTS) || in ip6t_ext_hdr() 40 (nexthdr == IPPROTO_ROUTING) || in ip6t_ext_hdr() 41 (nexthdr == IPPROTO_FRAGMENT) || in ip6t_ext_hdr() 42 (nexthdr == IPPROTO_ESP) || in ip6t_ext_hdr() 43 (nexthdr == IPPROTO_AH) || in ip6t_ext_hdr() 44 (nexthdr == IPPROTO_NONE) || in ip6t_ext_hdr() 45 (nexthdr == IPPROTO_DSTOPTS); in ip6t_ext_hdr()
|
/linux-4.4.14/net/xfrm/ |
D | xfrm_input.c | 128 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument 133 switch (nexthdr) { in xfrm_parse_spi() 182 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 236 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { in xfrm_input() 247 x = xfrm_state_lookup(net, mark, daddr, spi, nexthdr, family); in xfrm_input() 297 nexthdr = x->type->input(x, skb); in xfrm_input() 299 if (nexthdr == -EINPROGRESS) in xfrm_input() 305 if (nexthdr <= 0) { in xfrm_input() 306 if (nexthdr == -EBADMSG) { in xfrm_input() 330 XFRM_MODE_SKB_CB(skb)->protocol = nexthdr; in xfrm_input() [all …]
|
D | xfrm_ipcomp.c | 112 int nexthdr; in ipcomp_input() local 123 nexthdr = ipch->nexthdr; in ipcomp_input() 131 err = nexthdr; in ipcomp_input() 193 ipch->nexthdr = *skb_mac_header(skb); in ipcomp_output()
|
/linux-4.4.14/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 | 30 .nexthdr = _nexthdr, \ 69 const u8 nexthdr; member 85 struct lowpan_nhc *lowpan_nhc_by_nexthdr(u8 nexthdr);
|
D | iphc.c | 486 if (lowpan_fetch_skb(skb, &hdr.nexthdr, sizeof(hdr.nexthdr))) in lowpan_header_decompress() 490 hdr.nexthdr); in lowpan_header_decompress() 568 hdr.version, ntohs(hdr.payload_len), hdr.nexthdr, in lowpan_header_decompress() 758 hdr->version, ntohs(hdr->payload_len), hdr->nexthdr, in lowpan_header_compress() 790 lowpan_push_hc_data(&hc_ptr, &hdr->nexthdr, in lowpan_header_compress() 791 sizeof(hdr->nexthdr)); in lowpan_header_compress()
|
/linux-4.4.14/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-4.4.14/net/netfilter/ |
D | xt_AUDIT.c | 100 u8 nexthdr; in audit_ip6() local 110 nexthdr = ih->nexthdr; in audit_ip6() 112 &nexthdr, &frag_off); in audit_ip6() 115 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6() 118 audit_proto(ab, skb, nexthdr, offset); 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 | 173 int nexthdr; in hmark_pkt_set_htuple_ipv6() local 176 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); in hmark_pkt_set_htuple_ipv6() 177 if (nexthdr < 0) in hmark_pkt_set_htuple_ipv6() 180 if ((flag & IP6_FH_F_FRAG) || (nexthdr != IPPROTO_ICMPV6)) in hmark_pkt_set_htuple_ipv6() 189 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); in hmark_pkt_set_htuple_ipv6() 190 if (nexthdr < 0) in hmark_pkt_set_htuple_ipv6() 200 t->proto = nexthdr; in hmark_pkt_set_htuple_ipv6()
|
D | xt_TCPMSS.c | 230 u8 nexthdr; in tcpmss_tg6() local 235 nexthdr = ipv6h->nexthdr; in tcpmss_tg6() 236 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6()
|
D | xt_hashlimit.c | 523 u8 nexthdr; in hashlimit_init_dst() local 540 nexthdr = ip_hdr(skb)->protocol; in hashlimit_init_dst() 561 nexthdr = ipv6_hdr(skb)->nexthdr; in hashlimit_init_dst() 562 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, &frag_off); in hashlimit_init_dst() 573 poff = proto_ports_offset(nexthdr); in hashlimit_init_dst()
|
D | xt_socket.c | 292 inside_nexthdr = inside_iph->nexthdr; in extract_icmp6_fields()
|
/linux-4.4.14/net/bridge/netfilter/ |
D | ebt_log.c | 119 uint8_t nexthdr; in ebt_log_packet() local 129 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet() 130 nexthdr = ih->nexthdr; in ebt_log_packet() 131 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr, &frag_off); in ebt_log_packet() 134 print_ports(skb, nexthdr, offset_ph); in ebt_log_packet()
|
D | ebt_ip6.c | 59 uint8_t nexthdr = ih6->nexthdr; in ebt_ip6_mt() local 63 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); in ebt_ip6_mt() 66 if (FWINV(info->protocol != nexthdr, EBT_IP6_PROTO)) in ebt_ip6_mt()
|
D | nft_reject_bridge.c | 183 u8 proto = ip6h->nexthdr; in reject6_br_csum_ok()
|
/linux-4.4.14/include/uapi/linux/ |
D | ipv6.h | 47 __u8 nexthdr; member 60 __u8 nexthdr; member 127 __u8 nexthdr; member
|
D | ip.h | 109 __u8 nexthdr; member 124 __u8 nexthdr; member 130 __u8 nexthdr; member
|
/linux-4.4.14/security/ |
D | lsm_audit.c | 116 u8 nexthdr; in ipv6_skb_to_auditdata() local 129 nexthdr = ip6->nexthdr; in ipv6_skb_to_auditdata() 130 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in ipv6_skb_to_auditdata() 134 *proto = nexthdr; in ipv6_skb_to_auditdata() 135 switch (nexthdr) { in ipv6_skb_to_auditdata()
|
/linux-4.4.14/net/sched/ |
D | act_csum.c | 425 u8 nexthdr; in tcf_csum_ipv6() local 437 nexthdr = ip6h->nexthdr; in tcf_csum_ipv6() 440 switch (nexthdr) { in tcf_csum_ipv6() 453 if ((nexthdr == NEXTHDR_HOP) && in tcf_csum_ipv6() 456 nexthdr = ip6xh->nexthdr; in tcf_csum_ipv6()
|
D | em_u32.c | 30 ptr += (info->nexthdr & key->offmask); in em_u32_match()
|
D | cls_rsvp.h | 161 protocol = nhptr->nexthdr; in rsvp_classify()
|
/linux-4.4.14/net/ipv4/ |
D | xfrm4_protocol.c | 66 int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, in xfrm4_rcv_encap() argument 71 struct xfrm4_protocol __rcu **head = proto_handlers(nexthdr); in xfrm4_rcv_encap() 81 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
|
D | ah4.c | 204 ah->nexthdr = *skb_mac_header(skb); in ah_output() 281 err = ah->nexthdr; in ah_input_done() 300 int nexthdr; in ah_input() local 324 nexthdr = ah->nexthdr; in ah_input() 425 err = nexthdr; in ah_input()
|
D | xfrm4_mode_beet.c | 70 ph->nexthdr = top_iph->protocol; in xfrm4_beet_output() 104 XFRM_MODE_SKB_CB(skb)->protocol = ph->nexthdr; in xfrm4_beet_input()
|
D | esp4.c | 304 u8 nexthdr[2]; in esp_input_done2() local 312 if (skb_copy_bits(skb, skb->len-alen-2, nexthdr, 2)) in esp_input_done2() 316 padlen = nexthdr[0]; in esp_input_done2() 369 err = nexthdr[1]; in esp_input_done2()
|
D | ip_vti.c | 53 static int vti_input(struct sk_buff *skb, int nexthdr, __be32 spi, in vti_input() argument 69 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input()
|
/linux-4.4.14/include/net/ |
D | rawv6.h | 6 void raw6_icmp_error(struct sk_buff *, int nexthdr,
|
D | addrconf.h | 205 static inline bool ipv6_is_mld(struct sk_buff *skb, int nexthdr, int offset) in ipv6_is_mld() argument 209 if (nexthdr != IPPROTO_ICMPV6 || in ipv6_is_mld()
|
D | xfrm.h | 1362 int (*input_handler)(struct sk_buff *skb, int nexthdr, __be32 spi, 1514 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type); 1515 int xfrm_input_resume(struct sk_buff *skb, int nexthdr); 1522 int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, 1527 static inline int xfrm4_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi) in xfrm4_rcv_spi() argument 1532 return xfrm_input(skb, nexthdr, spi, 0); in xfrm4_rcv_spi() 1547 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi); 1630 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq);
|
D | vxlan.h | 224 l4_hdr = ipv6_hdr(skb)->nexthdr; in vxlan_features_check()
|
D | pkt_cls.h | 147 int nexthdr; member
|
D | ipv6.h | 106 __u8 nexthdr; member 838 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr); 903 bool ipv6_ext_hdr(u8 nexthdr);
|
/linux-4.4.14/net/bridge/ |
D | br_netfilter_ipv6.c | 123 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in br_validate_ipv6() 135 if (hdr->nexthdr == NEXTHDR_HOP && br_nf_check_hbh_len(skb)) in br_validate_ipv6()
|
D | br_multicast.c | 461 ip6h->nexthdr = IPPROTO_HOPOPTS; in br_ip6_multicast_alloc_query()
|
/linux-4.4.14/net/openvswitch/ |
D | flow.c | 256 uint8_t nexthdr; in parse_ipv6hdr() local 265 nexthdr = nh->nexthdr; in parse_ipv6hdr() 275 payload_ofs = ipv6_skip_exthdr(skb, payload_ofs, &nexthdr, &frag_off); in parse_ipv6hdr() 295 key->ip.proto = nexthdr; in parse_ipv6hdr()
|
D | conntrack.c | 280 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in ovs_ct_helper() local 284 ofs = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ovs_ct_helper() 340 key->ip.proto = ipv6_hdr(reasm)->nexthdr; in handle_fragments()
|
D | actions.c | 480 if (ipv6_ext_hdr(nh->nexthdr)) in set_ipv6()
|
/linux-4.4.14/drivers/staging/gdm724x/ |
D | gdm_lte.c | 202 pseudo_header.ph.ph_nxt = ipv6->nexthdr; in icmp6_checksum() 263 if (ipv6_in->version != 6 || ipv6_in->nexthdr != IPPROTO_ICMPV6) in gdm_lte_emulate_ndp() 394 if (ipv6->nexthdr == IPPROTO_ICMPV6) /* Check NDP request */ { in gdm_lte_tx_nic_type() 399 } else if (ipv6->nexthdr == IPPROTO_UDP) /* Check DHCPv6 */ { in gdm_lte_tx_nic_type()
|
/linux-4.4.14/net/core/ |
D | skbuff.c | 3913 u8 nexthdr; in skb_checksum_setup_ipv6() local 3929 nexthdr = ipv6_hdr(skb)->nexthdr; in skb_checksum_setup_ipv6() 3933 switch (nexthdr) { in skb_checksum_setup_ipv6() 3947 nexthdr = hp->nexthdr; in skb_checksum_setup_ipv6() 3962 nexthdr = hp->nexthdr; in skb_checksum_setup_ipv6() 3981 nexthdr = hp->nexthdr; in skb_checksum_setup_ipv6() 3996 csum = skb_checksum_setup_ip(skb, nexthdr, off); in skb_checksum_setup_ipv6() 4003 skb->len - off, nexthdr, 0); in skb_checksum_setup_ipv6()
|
D | flow_dissector.c | 217 ip_proto = iph->nexthdr; in __skb_flow_dissect() 454 ip_proto = fh->nexthdr; in __skb_flow_dissect()
|
D | netpoll.c | 433 ip6h->nexthdr = IPPROTO_UDP; in netpoll_send_udp()
|
D | pktgen.c | 3024 iph->nexthdr = IPPROTO_UDP; in fill_packet_ipv6()
|
/linux-4.4.14/samples/bpf/ |
D | sockex2_kern.c | 89 nhoff + offsetof(struct ipv6hdr, nexthdr)); in parse_ipv6()
|
D | sockex3_kern.c | 228 nhoff + offsetof(struct ipv6hdr, nexthdr)); in PROG()
|
/linux-4.4.14/drivers/net/ipvlan/ |
D | ipvlan_core.c | 169 ip6h->nexthdr == NEXTHDR_ICMP) { in ipvlan_get_L3_hdr() 397 .flowi6_proto = ip6h->nexthdr, in ipvlan_process_v6_outbound()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 705 if (ipv6h->nexthdr == IPPROTO_FRAGMENT || ipv6h->nexthdr == IPPROTO_HOPOPTS) in get_fixed_ipv6_csum() 707 hw_checksum = csum_add(hw_checksum, (__force __wsum)htons(ipv6h->nexthdr)); in get_fixed_ipv6_csum() 712 csum_pseudo_hdr = csum_add(csum_pseudo_hdr, (__force __wsum)ntohs(ipv6h->nexthdr)); in get_fixed_ipv6_csum()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_proto.c | 272 else if (ih->nexthdr == IPPROTO_FRAGMENT) in ip_vs_tcpudp_debug_packet_v6()
|
D | ip_vs_proto_udp.c | 332 ipv6_hdr(skb)->nexthdr, in udp_csum_check()
|
D | ip_vs_proto_tcp.c | 328 ipv6_hdr(skb)->nexthdr, in tcp_csum_check()
|
D | ip_vs_xmit.c | 1131 iph->nexthdr = next_protocol; in ip_vs_tunnel_xmit_v6()
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
D | be.h | 776 val = (ipv6_hdr(skb)->nexthdr == NEXTHDR_TCP); in is_tcp_pkt() 788 val = (ipv6_hdr(skb)->nexthdr == NEXTHDR_UDP); in is_udp_pkt()
|
D | be_main.c | 741 inner_ip_hdr(skb)->protocol : inner_ipv6_hdr(skb)->nexthdr; in skb_inner_ip_proto() 747 ip_hdr(skb)->protocol : ipv6_hdr(skb)->nexthdr; in skb_ip_proto() 1030 if (ip6h->nexthdr != NEXTHDR_TCP && in be_ipv6_exthdr_check() 1031 ip6h->nexthdr != NEXTHDR_UDP) { in be_ipv6_exthdr_check() 1244 u8 nexthdr = hdr->nexthdr; in be_send_pkt_to_bmc() local 1246 if (nexthdr == IPPROTO_ICMPV6) { in be_send_pkt_to_bmc() 5281 l4_hdr = ipv6_hdr(skb)->nexthdr; in be_features_check()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 732 l4_hdr = ipv6_hdr(skb)->nexthdr; in fm10k_tx_encap_offload() 757 inner_l4_hdr = inner_ipv6_hdr(skb)->nexthdr; in fm10k_tx_encap_offload() 867 l4_hdr = network_hdr.ipv6->nexthdr; in fm10k_tx_csum()
|
/linux-4.4.14/drivers/net/ |
D | vrf.c | 125 if (ipv6h->nexthdr == NEXTHDR_ICMP) { in check_ipv6_frame() 235 .flowi6_proto = iph->nexthdr, in vrf_process_v6_outbound()
|
D | vxlan.c | 1487 pip6->nexthdr = IPPROTO_ICMPV6; in vxlan_na_create() 2159 ipv6_hdr(skb)->nexthdr == IPPROTO_ICMPV6) { in vxlan_xmit()
|
/linux-4.4.14/drivers/net/hyperv/ |
D | netvsc_drv.c | 407 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) in get_net_transport_info() 409 else if (ipv6_hdr(skb)->nexthdr == IPPROTO_UDP) in get_net_transport_info()
|
/linux-4.4.14/drivers/net/usb/ |
D | cdc_mbim.c | 360 iph->nexthdr == IPPROTO_ICMPV6 && in is_neigh_solicit()
|
D | r8152.c | 1522 ip_protocol = ipv6_hdr(skb)->nexthdr; in r8152_tx_csum()
|
/linux-4.4.14/security/smack/ |
D | smack_lsm.c | 3866 u8 nexthdr; in smk_skb_to_addr_ipv6() local 3884 nexthdr = ip6->nexthdr; in smk_skb_to_addr_ipv6() 3886 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in smk_skb_to_addr_ipv6() 3890 proto = nexthdr; in smk_skb_to_addr_ipv6()
|
/linux-4.4.14/net/batman-adv/ |
D | gateway_client.c | 720 if (ipv6hdr->nexthdr != IPPROTO_UDP) in batadv_gw_dhcp_recipient_get()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 428 if (inner_ipv6_hdr(skb)->nexthdr == IPPROTO_UDP) in qlcnic_tx_encap_pkt() 564 l4proto = ipv6_hdr(skb)->nexthdr; in qlcnic_tx_pkt() 755 l4_is_udp = ipv6_hdr(skb)->nexthdr == IPPROTO_UDP; in qlcnic_xmit_frame()
|
/linux-4.4.14/security/selinux/ |
D | hooks.c | 3839 u8 nexthdr; in selinux_parse_skb_ipv6() local 3853 nexthdr = ip6->nexthdr; in selinux_parse_skb_ipv6() 3855 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in selinux_parse_skb_ipv6() 3860 *proto = nexthdr; in selinux_parse_skb_ipv6() 3862 switch (nexthdr) { in selinux_parse_skb_ipv6()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | rx.c | 902 spec.ip_proto = ip6->nexthdr; in efx_filter_rfs()
|
D | tx.c | 867 EFX_BUG_ON_PARANOID(ipv6_hdr(skb)->nexthdr != NEXTHDR_TCP); in efx_tso_check_protocol()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 1109 if (ip6h->nexthdr == IPPROTO_TCP) in hwcsum() 1111 else if (ip6h->nexthdr == IPPROTO_UDP) in hwcsum()
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 2629 return (ipv6_hdr(skb)->nexthdr != IPPROTO_TCP) && in is_with_extn_hdr() 2630 (ipv6_hdr(skb)->nexthdr != IPPROTO_UDP); in is_with_extn_hdr() 2655 tag = crc32(0, &ipv6hdr->nexthdr, 1); in get_ipv6_5tuple_tag()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 3398 prot = ipv6_hdr(skb)->nexthdr; in bnx2x_xmit_type() 3407 if (inner_ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) in bnx2x_xmit_type() 3774 if (ipv6->nexthdr == NEXTHDR_IPV6) in bnx2x_set_ipv6_ext_e2() 3847 txq_index, skb->ip_summed, skb->protocol, ipv6_hdr(skb)->nexthdr, in bnx2x_start_xmit()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qede/ |
D | qede_main.c | 319 (ipv6_hdr(skb)->nexthdr == NEXTHDR_IPV6)) in qede_xmit_type() 345 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_set_params_for_ipv6_ext()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 2022 (hdr.ipv6->nexthdr != IPPROTO_TCP)) in i40e_atr() 2386 l4_hdr = this_ipv6_hdr->nexthdr; in i40e_tx_enable_csum()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 1059 if (ip6h->nexthdr == IPPROTO_TCP) in hwcsum() 1061 else if (ip6h->nexthdr == IPPROTO_UDP) in hwcsum()
|
/linux-4.4.14/net/mpls/ |
D | af_mpls.c | 165 hash = jhash_1word(v6hdr->nexthdr, hash); in mpls_select_multipath()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.c | 1591 l4_hdr = this_ipv6_hdr->nexthdr; in i40e_tx_enable_csum()
|
/linux-4.4.14/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1047 ipv6_hdr(skb)->nexthdr != IPPROTO_TCP)) && in ibmveth_start_xmit()
|
/linux-4.4.14/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 856 protocol = ipv6h->nexthdr; in vmxnet3_parse_and_copy_hdr() 1215 if (hdr.ipv6->nexthdr != IPPROTO_TCP) in vmxnet3_get_hdr_len()
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
D | txrx.c | 1162 protocol = ipv6_hdr(skb)->nexthdr; in wil_tx_desc_offload_setup()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 983 ip_proto = ipv6_hdr(skb)->nexthdr; in bcm_sysport_insert_tsb()
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
D | sunvnet.c | 1161 proto = ipv6_hdr(skb)->nexthdr; in vnet_handle_offloads()
|
D | niu.c | 6588 ip_proto = ipv6_hdr(skb)->nexthdr; in niu_compute_tx_flags()
|
/linux-4.4.14/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 2026 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) in igbvf_tx_csum()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_main.c | 1931 l4proto = ipv6_hdr(skb)->nexthdr; in netxen_tso_check()
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
D | mvneta.c | 1476 l4_proto = ip6h->nexthdr; in mvneta_skb_tx_csum()
|
D | mvpp2.c | 5048 l4_proto = ip6h->nexthdr; in mvpp2_skb_tx_csum()
|
/linux-4.4.14/drivers/net/ethernet/ |
D | jme.c | 2135 ip_proto = ipv6_hdr(skb)->nexthdr; in jme_tx_csum()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 1398 ip_proto = ipv6_hdr(skb)->nexthdr; in bcmgenet_put_tx_csum()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 3367 l4_hdr = ipv6_hdr(skb)->nexthdr; in ixgbevf_tx_csum()
|
/linux-4.4.14/drivers/net/bonding/ |
D | bond_main.c | 3127 proto = iph6->nexthdr; in bond_flow_dissect()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 7049 l4_hdr = network_hdr.ipv6->nexthdr; in ixgbe_tx_csum() 7383 hdr.ipv6->nexthdr != IPPROTO_TCP) && in ixgbe_atr()
|
/linux-4.4.14/drivers/net/ethernet/brocade/bna/ |
D | bnad.c | 2886 proto = ipv6_hdr(skb)->nexthdr; in bnad_txq_wi_prepare()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 2792 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) in e1000_tx_csum()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 909 if (iph->nexthdr == IPPROTO_UDP) in bnxt_gro_skb()
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 4729 l4_hdr = ipv6_hdr(skb)->nexthdr; in igb_tx_csum()
|
/linux-4.4.14/drivers/net/ethernet/realtek/ |
D | r8169.c | 7084 ip_protocol = ipv6_hdr(skb)->nexthdr; in rtl8169_tso_csum_v2()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5426 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) in e1000_tx_csum()
|