/net/ipv6/netfilter/ |
H A D | ip6t_ipv6header.c | 35 u8 nexthdr; local 41 nexthdr = ipv6_hdr(skb)->nexthdr; 48 while (ip6t_ext_hdr(nexthdr)) { 54 if (nexthdr == NEXTHDR_NONE) { 62 if (nexthdr == NEXTHDR_ESP) { 71 if (nexthdr == NEXTHDR_FRAGMENT) 73 else if (nexthdr == NEXTHDR_AUTH) 79 switch (nexthdr) { 99 nexthdr [all...] |
H A D | ip6t_SYNPROXY.c | 32 iph->nexthdr = IPPROTO_TCP; 330 u8 nexthdr; local 344 nexthdr = ipv6_hdr(skb)->nexthdr; 345 thoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr,
|
H A D | nf_conntrack_l3proto_ipv6.c | 76 u8 nexthdr; local 78 if (skb_copy_bits(skb, nhoff + offsetof(struct ipv6hdr, nexthdr), 79 &nexthdr, sizeof(nexthdr)) != 0) { 80 pr_debug("ip6_conntrack_core: can't get nexthdr\n"); 83 protoff = ipv6_skip_exthdr(skb, extoff, &nexthdr, &frag_off); 94 *protonum = nexthdr; 110 u8 nexthdr; local 125 nexthdr = ipv6_hdr(skb)->nexthdr; [all...] |
H A D | nf_nat_l3proto_ipv6.c | 86 u8 nexthdr; local 92 nexthdr = ipv6h->nexthdr; 94 &nexthdr, &frag_off); 239 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); 279 u8 nexthdr; local 301 nexthdr = ipv6_hdr(skb)->nexthdr; 303 &nexthdr, &frag_off); 305 if (hdrlen >= 0 && nexthdr [all...] |
/net/ipv6/ |
H A D | xfrm6_input.c | 24 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi) argument 28 return xfrm_input(skb, nexthdr, spi, 0);
|
H A D | ip6_input.c | 55 ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]); 155 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); 160 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { 173 if (hdr->nexthdr == NEXTHDR_HOP) { 207 int nexthdr; local 220 nexthdr = skb_network_header(skb)[nhoff]; 222 raw = raw6_local_deliver(skb, nexthdr); 223 if ((ipprot = rcu_dereference(inet6_protos[nexthdr])) != NULL) { 240 !ipv6_is_mld(skb, nexthdr, skb_network_header_len(skb))) 313 u8 nexthdr local [all...] |
H A D | output_core.c | 45 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) argument 53 *nexthdr = &ipv6_hdr(skb)->nexthdr; 57 switch (**nexthdr) { 77 *nexthdr = &exthdr->nexthdr; 115 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);
|
H A D | udp_offload.c | 28 u8 nexthdr; local 97 nexthdr = *prevhdr; 109 fptr->nexthdr = nexthdr;
|
H A D | exthdrs_core.c | 9 * find out if nexthdr is a well-known extension header or a protocol 12 bool ipv6_ext_hdr(u8 nexthdr) argument 15 * find out if nexthdr is an extension header or a protocol 17 return (nexthdr == NEXTHDR_HOP) || 18 (nexthdr == NEXTHDR_ROUTING) || 19 (nexthdr == NEXTHDR_FRAGMENT) || 20 (nexthdr == NEXTHDR_AUTH) || 21 (nexthdr == NEXTHDR_NONE) || 22 (nexthdr == NEXTHDR_DEST); 52 * If it is not NULL *nexthdr i 74 u8 nexthdr = *nexthdrp; local 189 u8 nexthdr = ipv6_hdr(skb)->nexthdr; local [all...] |
H A D | mip6.c | 134 int err = destopt->nexthdr; 154 u8 nexthdr; local 160 nexthdr = *skb_mac_header(skb); 164 dstopt->nexthdr = nexthdr; 264 u8 **nexthdr) 274 *nexthdr = &ipv6_hdr(skb)->nexthdr; 278 switch (**nexthdr) { 304 *nexthdr 263 mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **nexthdr) argument 374 u8 nexthdr; local 399 mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **nexthdr) argument [all...] |
H A D | xfrm6_policy.c | 137 u8 nexthdr = nh[IP6CB(skb)->nhoff]; local 155 switch (nexthdr) { 162 nexthdr = exthdr->nexthdr; 180 fl6->flowi6_proto = nexthdr; 192 fl6->flowi6_proto = nexthdr; 204 fl6->flowi6_proto = nexthdr; 214 fl6->flowi6_proto = nexthdr;
|
/net/bridge/netfilter/ |
H A D | ebt_ip6.c | 59 uint8_t nexthdr = ih6->nexthdr; local 63 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); 66 if (FWINV(info->protocol != nexthdr, EBT_IP6_PROTO))
|
H A D | ebt_log.c | 119 uint8_t nexthdr; local 129 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); 130 nexthdr = ih->nexthdr; 131 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr, &frag_off); 134 print_ports(skb, nexthdr, offset_ph);
|
/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 134 u8 nexthdr; local 137 nexthdr = ipv6_hdr(skb)->nexthdr; 138 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, 143 return get_port(skb, nexthdr, protoff, src, port, proto);
|
/net/netfilter/ |
H A D | xt_AUDIT.c | 100 u8 nexthdr; local 110 nexthdr = ih->nexthdr; 112 &nexthdr, &frag_off); 115 &ih->saddr, &ih->daddr, nexthdr); 118 audit_proto(ab, skb, nexthdr, offset);
|
H A D | xt_TCPOPTSTRIP.c | 104 u_int8_t nexthdr; local 107 nexthdr = ipv6h->nexthdr; 108 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off);
|
H A D | xt_HMARK.c | 173 int nexthdr; local 176 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); 177 if (nexthdr < 0) 180 if ((flag & IP6_FH_F_FRAG) || (nexthdr != IPPROTO_ICMPV6)) 189 nexthdr = ipv6_find_hdr(skb, &nhoff, -1, &fragoff, &flag); 190 if (nexthdr < 0) 200 t->proto = nexthdr;
|
H A D | xt_TCPMSS.c | 230 u8 nexthdr; local 235 nexthdr = ipv6h->nexthdr; 236 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off);
|
/net/ipv4/ |
H A D | xfrm4_protocol.c | 66 int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, argument 71 struct xfrm4_protocol __rcu **head = proto_handlers(nexthdr); 81 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL)
|
H A D | ah4.c | 204 ah->nexthdr = *skb_mac_header(skb); 281 err = ah->nexthdr; 300 int nexthdr; local 324 nexthdr = ah->nexthdr; 423 err = nexthdr;
|
H A D | ip_vti.c | 53 static int vti_input(struct sk_buff *skb, int nexthdr, __be32 spi, argument 70 return xfrm_input(skb, nexthdr, spi, encap_type);
|
H A D | esp4.c | 284 u8 nexthdr[2]; local 292 if (skb_copy_bits(skb, skb->len-alen-2, nexthdr, 2)) 296 padlen = nexthdr[0]; 349 err = nexthdr[1];
|
/net/xfrm/ |
H A D | xfrm_input.c | 126 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) argument 131 switch (nexthdr) { 180 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) argument 221 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { 232 x = xfrm_state_lookup(net, skb->mark, daddr, spi, nexthdr, family); 281 nexthdr = x->type->input(x, skb); 283 if (nexthdr == -EINPROGRESS) 287 if (nexthdr <= 0) { 288 if (nexthdr == -EBADMSG) { 312 XFRM_MODE_SKB_CB(skb)->protocol = nexthdr; 369 xfrm_input_resume(struct sk_buff *skb, int nexthdr) argument [all...] |
H A D | xfrm_ipcomp.c | 112 int nexthdr; local 123 nexthdr = ipch->nexthdr; 131 err = nexthdr; 193 ipch->nexthdr = *skb_mac_header(skb);
|
/net/sched/ |
H A D | act_csum.c | 424 u8 nexthdr; local 436 nexthdr = ip6h->nexthdr; 439 switch (nexthdr) { 452 if ((nexthdr == NEXTHDR_HOP) && 455 nexthdr = ip6xh->nexthdr;
|