/linux-master/net/ipv6/ |
H A D | exthdrs_core.c | 10 * find out if nexthdr is a well-known extension header or a protocol 13 bool ipv6_ext_hdr(u8 nexthdr) argument 16 * find out if nexthdr is an extension header or a protocol 18 return (nexthdr == NEXTHDR_HOP) || 19 (nexthdr == NEXTHDR_ROUTING) || 20 (nexthdr == NEXTHDR_FRAGMENT) || 21 (nexthdr == NEXTHDR_AUTH) || 22 (nexthdr == NEXTHDR_NONE) || 23 (nexthdr == NEXTHDR_DEST); 53 * If it is not NULL *nexthdr i 75 u8 nexthdr = *nexthdrp; local 192 u8 nexthdr = ipv6_hdr(skb)->nexthdr; local [all...] |
H A D | mcast_snoop.c | 41 u8 nexthdr; local 46 if (ip6h->nexthdr != IPPROTO_HOPOPTS) 49 nexthdr = ip6h->nexthdr; 51 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); 56 if (nexthdr != IPPROTO_ICMPV6)
|
H A D | output_core.c | 58 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) argument 64 *nexthdr = &ipv6_hdr(skb)->nexthdr; 69 switch (**nexthdr) { 96 *nexthdr = &exthdr->nexthdr; 132 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);
|
H A D | rpl.c | 38 outhdr->nexthdr = inhdr->nexthdr; 98 outhdr->nexthdr = inhdr->nexthdr;
|
H A D | ip6_offload.c | 65 proto = opth->nexthdr; 100 proto = opth->nexthdr; 139 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); 204 proto = iph->nexthdr; 215 proto = opth->nexthdr; 243 proto = iph->nexthdr; 283 iph->nexthdr != iph2->nexthdr) { 377 hop_jumbo->nexthdr = iph->nexthdr; [all...] |
H A D | ah6.c | 247 int nexthdr = iph->nexthdr; local 252 switch (nexthdr) { 260 nexthdr == NEXTHDR_HOP ? 274 nexthdr = exthdr.opth->nexthdr; 323 u8 nexthdr; local 373 nexthdr = *skb_mac_header(skb); 395 ah->nexthdr = nexthdr; 519 int nexthdr; local [all...] |
/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_ipv6header.c | 32 u8 nexthdr; local 38 nexthdr = ipv6_hdr(skb)->nexthdr; 45 while (nf_ip6_ext_hdr(nexthdr)) { 51 if (nexthdr == NEXTHDR_NONE) { 59 if (nexthdr == NEXTHDR_ESP) { 71 if (nexthdr == NEXTHDR_FRAGMENT) 73 else if (nexthdr == NEXTHDR_AUTH) 79 switch (nexthdr) { 99 nexthdr [all...] |
/linux-master/net/6lowpan/ |
H A D | nhc.c | 49 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; 66 nhc = lowpan_nexthdr_nhcs[hdr->nexthdr]; 131 hdr->nexthdr = nhc->nexthdr; 147 if (lowpan_nexthdr_nhcs[nhc->nexthdr]) { 152 lowpan_nexthdr_nhcs[nhc->nexthdr] = nhc; 163 lowpan_nexthdr_nhcs[nhc->nexthdr] = NULL;
|
H A D | nhc.h | 17 * @_nexthdr: ipv6 nexthdr field for the header compression. 18 * @_nexthdrlen: ipv6 nexthdr len for the reserved space. 29 .nexthdr = _nexthdr, \ 53 * @nexthdr: next header value of the protocol which should be compressed. 54 * @nexthdrlen: ipv6 nexthdr len for the reserved space. 62 u8 nexthdr; member in struct:lowpan_nhc 72 * lowpan_nhc_by_nexthdr - return the 6lowpan nhc by ipv6 nexthdr. 74 * @nexthdr: ipv6 nexthdr value. 76 struct lowpan_nhc *lowpan_nhc_by_nexthdr(u8 nexthdr); [all...] |
/linux-master/samples/bpf/ |
H A D | parse_varlen.c | 83 uint64_t nexthdr; local 89 nexthdr = ip6h->nexthdr; 91 if (nexthdr == IPPROTO_IPIP) { 96 nexthdr = iph->protocol; 97 } else if (nexthdr == IPPROTO_IPV6) { 102 nexthdr = ip6h->nexthdr; 105 if (nexthdr == IPPROTO_TCP) 107 else if (nexthdr [all...] |
H A D | test_cgrp2_tc.bpf.c | 43 ip6h->nexthdr != IPPROTO_ICMPV6) { 45 eth->h_proto, ip6h->nexthdr);
|
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 136 u8 nexthdr; local 139 nexthdr = ipv6_hdr(skb)->nexthdr; 142 sizeof(struct ipv6hdr), &nexthdr, 147 return get_port(skb, nexthdr, protoff, src, port, proto);
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_ovs.c | 41 u8 nexthdr = ipv6_hdr(skb)->nexthdr; local 45 ofs = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, 52 proto = nexthdr; 125 if (ipv6_hdr(skb)->nexthdr == NEXTHDR_HOP) { 172 *proto = ipv6_hdr(skb)->nexthdr;
|
H A D | nf_nat_ovs.c | 35 u8 nexthdr = ipv6_hdr(skb)->nexthdr; local 38 &nexthdr, &frag_off); 40 if (hdrlen >= 0 && nexthdr == IPPROTO_ICMPV6) {
|
H A D | xt_AUDIT.c | 50 u8 nexthdr; local 57 nexthdr = ih->nexthdr; 58 ipv6_skip_exthdr(skb, skb_network_offset(skb) + sizeof(_ip6h), &nexthdr, &frag_off); 61 &ih->saddr, &ih->daddr, nexthdr);
|
H A D | xt_TCPOPTSTRIP.c | 100 u_int8_t nexthdr; local 103 nexthdr = ipv6h->nexthdr; 104 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off);
|
/linux-master/include/uapi/linux/ |
H A D | seg6.h | 25 __u8 nexthdr; member in struct:ipv6_sr_hdr
|
H A D | rpl.h | 20 __u8 nexthdr; member in struct:ipv6_rpl_sr_hdr
|
H A D | ip.h | 113 __u8 nexthdr; member in struct:ip_auth_hdr 128 __u8 nexthdr; member in struct:ip_comp_hdr 134 __u8 nexthdr; member in struct:ip_beet_phdr
|
H A D | ipv6.h | 51 __u8 nexthdr; member in struct:ipv6_rt_hdr 64 __u8 nexthdr; member in struct:ipv6_opt_hdr 131 __u8 nexthdr; member in struct:ipv6hdr
|
/linux-master/tools/include/uapi/linux/ |
H A D | seg6.h | 25 __u8 nexthdr; member in struct:ipv6_sr_hdr
|
/linux-master/include/net/ |
H A D | rawv6.h | 15 void raw6_icmp_error(struct sk_buff *, int nexthdr,
|
/linux-master/include/linux/ |
H A D | netfilter_ipv6.h | 15 nf_ip6_ext_hdr(u8 nexthdr) argument 16 { return (nexthdr == IPPROTO_HOPOPTS) || 17 (nexthdr == IPPROTO_ROUTING) || 18 (nexthdr == IPPROTO_FRAGMENT) || 19 (nexthdr == IPPROTO_ESP) || 20 (nexthdr == IPPROTO_AH) || 21 (nexthdr == IPPROTO_NONE) || 22 (nexthdr == IPPROTO_DSTOPTS);
|
/linux-master/net/bridge/netfilter/ |
H A D | ebt_ip6.c | 63 uint8_t nexthdr = ih6->nexthdr; local 67 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr, &frag_off); 70 if (NF_INVF(info, EBT_IP6_PROTO, info->protocol != nexthdr))
|
H A D | ebt_log.c | 118 uint8_t nexthdr; local 128 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); 129 nexthdr = ih->nexthdr; 130 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr, &frag_off); 133 print_ports(skb, nexthdr, offset_ph);
|