/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() 265 u8 **nexthdr) in mip6_destopt_offset() argument 274 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_destopt_offset() 278 switch (**nexthdr) { in mip6_destopt_offset() 304 *nexthdr = &exthdr->nexthdr; in mip6_destopt_offset() 357 int err = rt2->rt_hdr.nexthdr; in mip6_rthdr_input() 375 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() 151 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ipv6_rcv() 156 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in ipv6_rcv() 169 if (hdr->nexthdr == NEXTHDR_HOP) { in ipv6_rcv() 203 int nexthdr; in ip6_input_finish() local 216 nexthdr = skb_network_header(skb)[nhoff]; in ip6_input_finish() 218 raw = raw6_local_deliver(skb, nexthdr); in ip6_input_finish() 219 if ((ipprot = rcu_dereference(inet6_protos[nexthdr])) != NULL) { in ip6_input_finish() 236 !ipv6_is_mld(skb, nexthdr, skb_network_header_len(skb))) in ip6_input_finish() 309 u8 nexthdr = hdr->nexthdr; in ip6_mc_input() local [all …]
|
D | output_core.c | 38 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) in ip6_find_1stfragopt() argument 45 *nexthdr = &ipv6_hdr(skb)->nexthdr; in ip6_find_1stfragopt() 49 switch (**nexthdr) { in ip6_find_1stfragopt() 69 *nexthdr = &exthdr->nexthdr; in ip6_find_1stfragopt()
|
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 379 nexthdr = *skb_mac_header(skb); in ah6_output() 401 ah->nexthdr = nexthdr; in ah6_output() 470 err = ah->nexthdr; in ah6_input_done() 515 int nexthdr; in ah6_input() local 534 nexthdr = ah->nexthdr; in ah6_input() [all …]
|
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 | 49 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs() 71 ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr)]); in ipv6_gso_send_check() 112 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 173 proto = iph->nexthdr; in ipv6_gro_receive() 207 memcmp(&iph->nexthdr, &iph2->nexthdr, in ipv6_gro_receive() 208 nlen - offsetof(struct ipv6hdr, nexthdr))) { in ipv6_gro_receive()
|
D | xfrm6_policy.c | 140 u8 nexthdr = nh[IP6CB(skb)->nhoff]; in _decode_session6() local 153 switch (nexthdr) { in _decode_session6() 160 nexthdr = exthdr->nexthdr; in _decode_session6() 176 fl6->flowi6_proto = nexthdr; in _decode_session6() 186 fl6->flowi6_proto = nexthdr; in _decode_session6() 197 fl6->flowi6_proto = nexthdr; in _decode_session6() 207 fl6->flowi6_proto = nexthdr; in _decode_session6()
|
D | udp_offload.c | 50 u8 nexthdr; in udp6_ufo_fragment() local 97 nexthdr = *prevhdr; in udp6_ufo_fragment() 109 fptr->nexthdr = nexthdr; in udp6_ufo_fragment()
|
D | icmp.c | 148 __u8 nexthdr = ipv6_hdr(skb)->nexthdr; in is_ineligible() local 154 ptr = ipv6_skip_exthdr(skb, ptr, &nexthdr, &frag_off); in is_ineligible() 157 if (nexthdr == IPPROTO_ICMPV6) { in is_ineligible() 632 u8 nexthdr; in icmpv6_notify() local 637 nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr; in icmpv6_notify() 638 if (ipv6_ext_hdr(nexthdr)) { in icmpv6_notify() 641 &nexthdr, &frag_off); in icmpv6_notify() 660 ipprot = rcu_dereference(inet6_protos[nexthdr]); in icmpv6_notify() 665 raw6_icmp_error(skb, nexthdr, type, code, inner_offset, info); in icmpv6_notify()
|
/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() 100 nexthdr = hp->nexthdr; in ipv6header_mt6() 107 if (nexthdr != NEXTHDR_NONE && nexthdr != NEXTHDR_ESP) in ipv6header_mt6()
|
D | nf_conntrack_l3proto_ipv6.c | 75 u8 nexthdr; in ipv6_get_l4proto() local 77 if (skb_copy_bits(skb, nhoff + offsetof(struct ipv6hdr, nexthdr), in ipv6_get_l4proto() 78 &nexthdr, sizeof(nexthdr)) != 0) { in ipv6_get_l4proto() 82 protoff = ipv6_skip_exthdr(skb, extoff, &nexthdr, &frag_off); in ipv6_get_l4proto() 93 *protonum = nexthdr; in ipv6_get_l4proto() 109 u8 nexthdr; in ipv6_helper() local 124 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6_helper() 125 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ipv6_helper() 143 unsigned char pnum = ipv6_hdr(skb)->nexthdr; in ipv6_confirm()
|
D | nf_conntrack_reasm.c | 502 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in find_prev_fhdr() local 504 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr() 509 while (nexthdr != NEXTHDR_FRAGMENT) { in find_prev_fhdr() 513 if (!ipv6_ext_hdr(nexthdr)) { in find_prev_fhdr() 516 if (nexthdr == NEXTHDR_NONE) { in find_prev_fhdr() 526 if (nexthdr == NEXTHDR_AUTH) in find_prev_fhdr() 531 prevhdr = nexthdr; in find_prev_fhdr() 534 nexthdr = hdr.nexthdr; in find_prev_fhdr()
|
D | ip6table_nat.c | 78 u8 nexthdr; in nf_nat_ipv6_fn() local 108 nexthdr = ipv6_hdr(skb)->nexthdr; in nf_nat_ipv6_fn() 110 &nexthdr, &frag_off); in nf_nat_ipv6_fn() 112 if (hdrlen >= 0 && nexthdr == IPPROTO_ICMPV6) { in nf_nat_ipv6_fn()
|
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() 235 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); in nf_nat_icmpv6_reply_translation()
|
/net/xfrm/ |
D | xfrm_input.c | 51 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument 56 switch (nexthdr) { in xfrm_parse_spi() 105 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 145 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { in xfrm_input() 156 x = xfrm_state_lookup(net, skb->mark, daddr, spi, nexthdr, family); in xfrm_input() 195 nexthdr = x->type->input(x, skb); in xfrm_input() 197 if (nexthdr == -EINPROGRESS) in xfrm_input() 202 if (nexthdr <= 0) { in xfrm_input() 203 if (nexthdr == -EBADMSG) { in xfrm_input() 227 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()
|
/net/netfilter/ipset/ |
D | ip_set_getport.c | 118 u8 nexthdr; in ip_set_get_ip6_port() local 121 nexthdr = ipv6_hdr(skb)->nexthdr; in ip_set_get_ip6_port() 122 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ip_set_get_ip6_port() 127 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
|
/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 | 102 u_int8_t nexthdr; in tcpoptstrip_tg6() local 105 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6() 106 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 | 222 u8 nexthdr; in tcpmss_tg6() local 227 nexthdr = ipv6h->nexthdr; in tcpmss_tg6() 228 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6()
|
/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 | 57 uint8_t nexthdr = ih6->nexthdr; in ebt_ip6_mt() local 61 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); in ebt_ip6_mt() 64 if (FWINV(info->protocol != nexthdr, EBT_IP6_PROTO)) in ebt_ip6_mt()
|
/net/sched/ |
D | act_csum.c | 442 u8 nexthdr; in tcf_csum_ipv6() local 454 nexthdr = ip6h->nexthdr; in tcf_csum_ipv6() 457 switch (nexthdr) { in tcf_csum_ipv6() 470 if ((nexthdr == NEXTHDR_HOP) && in tcf_csum_ipv6() 473 nexthdr = ip6xh->nexthdr; in tcf_csum_ipv6()
|