Searched refs:nexthdr (Results 1 - 25 of 54) sorted by relevance

123

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/
H A Dexthdrs_core.c8 * find out if nexthdr is a well-known extension header or a protocol
11 int ipv6_ext_hdr(u8 nexthdr) argument
14 * find out if nexthdr is an extension header or a protocol
16 return ( (nexthdr == NEXTHDR_HOP) ||
17 (nexthdr == NEXTHDR_ROUTING) ||
18 (nexthdr == NEXTHDR_FRAGMENT) ||
19 (nexthdr == NEXTHDR_AUTH) ||
20 (nexthdr == NEXTHDR_NONE) ||
21 (nexthdr == NEXTHDR_DEST) );
50 * If it is not NULL *nexthdr i
68 u8 nexthdr = *nexthdrp; local
[all...]
H A Dmip6.c140 return destopt->nexthdr;
152 u8 nexthdr; local
158 nexthdr = *skb_network_header(skb);
162 dstopt->nexthdr = nexthdr;
257 u8 **nexthdr)
266 *nexthdr = &ipv6_hdr(skb)->nexthdr;
270 switch (**nexthdr) {
291 *nexthdr
256 mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **nexthdr) argument
360 u8 nexthdr; local
383 mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **nexthdr) argument
[all...]
H A Dip6_input.c105 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr);
110 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) {
122 if (hdr->nexthdr == NEXTHDR_HOP) {
152 int nexthdr; local
166 nexthdr = skb_network_header(skb)[nhoff];
168 raw_sk = sk_head(&raw_v6_htable[nexthdr & (MAX_INET_PROTOS - 1)]);
169 if (raw_sk && !ipv6_raw_deliver(skb, nexthdr))
172 hash = nexthdr & (MAX_INET_PROTOS - 1);
190 !ipv6_is_mld(skb, nexthdr))
259 if(hdr->nexthdr
[all...]
H A Dxfrm6_input.c27 int nexthdr; local
31 nexthdr = skb_network_header(skb)[nhoff];
34 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0)
44 nexthdr != IPPROTO_IPIP ? nexthdr : IPPROTO_IPV6, AF_INET6);
57 nexthdr = x->type->input(x, skb);
58 if (nexthdr <= 0)
61 skb_network_header(skb)[nhoff] = nexthdr;
81 if ((err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) < 0)
H A Dah6.c185 int nexthdr = iph->nexthdr; local
190 switch (nexthdr) {
200 nexthdr == NEXTHDR_HOP ?
214 nexthdr = exthdr.opth->nexthdr;
228 u8 nexthdr; local
241 nexthdr = *skb_network_header(skb);
272 ah->nexthdr = nexthdr;
333 int nexthdr; local
[all...]
H A Dxfrm6_mode_tunnel.c59 skb->network_header += offsetof(struct ipv6hdr, nexthdr);
67 top_iph->nexthdr = IPPROTO_IPV6;
73 top_iph->nexthdr = IPPROTO_IPIP;
H A Dxfrm6_policy.c274 u8 nexthdr = nh[IP6CB(skb)->nhoff]; local
284 switch (nexthdr) {
289 nexthdr = exthdr->nexthdr;
304 fl->proto = nexthdr;
314 fl->proto = nexthdr;
325 fl->proto = nexthdr;
334 fl->proto = nexthdr;
H A Dicmp.c134 __u8 nexthdr = ipv6_hdr(skb)->nexthdr; local
139 ptr = ipv6_skip_exthdr(skb, ptr, &nexthdr);
142 if (nexthdr == IPPROTO_ICMPV6) {
571 u8 nexthdr; local
576 nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr;
577 if (ipv6_ext_hdr(nexthdr)) {
579 inner_offset = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr);
600 hash = nexthdr
[all...]
H A Dip6_output.c227 hdr->nexthdr = proto;
281 hdr->nexthdr = proto;
322 u8 nexthdr = hdr->nexthdr; local
325 if (ipv6_ext_hdr(nexthdr)) {
326 offset = ipv6_skip_exthdr(skb, sizeof(*hdr), &nexthdr);
332 if (nexthdr == IPPROTO_ICMPV6) {
534 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) argument
541 *nexthdr = &ipv6_hdr(skb)->nexthdr;
585 u8 *prevhdr, nexthdr = 0; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/netfilter/
H A Dip6t_ipv6header.c42 u8 nexthdr; local
48 nexthdr = ipv6_hdr(skb)->nexthdr;
55 while (ip6t_ext_hdr(nexthdr)) {
63 if (nexthdr == NEXTHDR_NONE) {
68 if (nexthdr == NEXTHDR_ESP) {
77 if (nexthdr == NEXTHDR_FRAGMENT) {
79 } else if (nexthdr == NEXTHDR_AUTH)
85 switch (nexthdr) {
106 nexthdr
[all...]
H A Dnf_conntrack_l3proto_ipv6.c79 * if success, *nexthdr is updated by type/protocol of this header.
94 u8 nexthdr = *nexthdrp; local
96 while (ipv6_ext_hdr(nexthdr)) {
102 if (nexthdr == NEXTHDR_NONE)
104 if (nexthdr == NEXTHDR_FRAGMENT)
108 if (nexthdr == NEXTHDR_AUTH)
113 nexthdr = hdr.nexthdr;
118 *nexthdrp = nexthdr;
127 unsigned char pnum = ipv6_hdr(*pskb)->nexthdr;
[all...]
H A Dip6_tables.c77 ip6t_ext_hdr(u8 nexthdr) argument
79 return ( (nexthdr == IPPROTO_HOPOPTS) ||
80 (nexthdr == IPPROTO_ROUTING) ||
81 (nexthdr == IPPROTO_FRAGMENT) ||
82 (nexthdr == IPPROTO_ESP) ||
83 (nexthdr == IPPROTO_AH) ||
84 (nexthdr == IPPROTO_NONE) ||
85 (nexthdr == IPPROTO_DSTOPTS) );
1422 u8 nexthdr = ipv6_hdr(skb)->nexthdr; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/
H A Drawv6.h10 extern int ipv6_raw_deliver(struct sk_buff *skb, int nexthdr);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/common/include/proto/
H A Dbcmip.h169 uint8 nexthdr; member in struct:ipv6_exthdr
174 uint8 nexthdr; member in struct:ipv6_exthdr_frag
186 while (IPV6_EXTHDR(eh->nexthdr)) {
187 if (eh->nexthdr == IPV6_EXTHDR_NONE)
189 else if (eh->nexthdr == IPV6_EXTHDR_FRAGMENT)
191 else if (eh->nexthdr == IPV6_EXTHDR_AUTH)
200 *proto = eh->nexthdr;
H A Dbcmipv6.h104 uint8 nexthdr; member in struct:ipv6_hdr
126 uint8 nexthdr; member in struct:ipv6_frag
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/include/proto/
H A Dbcmip.h178 uint8 nexthdr; member in struct:ipv6_exthdr
183 uint8 nexthdr; member in struct:ipv6_exthdr_frag
195 while (IPV6_EXTHDR(eh->nexthdr)) {
196 if (eh->nexthdr == IPV6_EXTHDR_NONE)
198 else if (eh->nexthdr == IPV6_EXTHDR_FRAGMENT)
200 else if (eh->nexthdr == IPV6_EXTHDR_AUTH)
209 *proto = eh->nexthdr;
H A Dbcmipv6.h104 uint8 nexthdr; member in struct:ipv6_hdr
126 uint8 nexthdr; member in struct:ipv6_frag
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Dip.h122 __u8 nexthdr; member in struct:ip_auth_hdr
137 __u8 nexthdr; member in struct:ip_comp_hdr
143 __u8 nexthdr; member in struct:ip_beet_phdr
H A Dipv6.h38 __u8 nexthdr; member in struct:ipv6_rt_hdr
51 __u8 nexthdr; member in struct:ipv6_opt_hdr
100 __u8 nexthdr; member in struct:ipv6_auth_hdr
115 __u8 nexthdr; member in struct:ipv6_comp_hdr
140 __u8 nexthdr; member in struct:ipv6hdr
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sched/
H A Dem_u32.c30 ptr += (info->nexthdr & key->offmask);
H A Dsch_sfq.c158 h2 = iph->saddr.s6_addr32[3]^iph->nexthdr;
159 if (iph->nexthdr == IPPROTO_TCP ||
160 iph->nexthdr == IPPROTO_UDP ||
161 iph->nexthdr == IPPROTO_UDPLITE ||
162 iph->nexthdr == IPPROTO_SCTP ||
163 iph->nexthdr == IPPROTO_DCCP ||
164 iph->nexthdr == IPPROTO_ESP)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/xfrm/
H A Dxfrm_input.c49 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) argument
53 switch (nexthdr) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/
H A Dxfrm4_input.c26 static int xfrm4_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) argument
28 switch (nexthdr) {
36 return xfrm_parse_spi(skb, nexthdr, spi, seq);
H A Dxfrm4_mode_beet.c57 ph->nexthdr = top_iph->protocol;
95 ph_nexthdr = ph->nexthdr;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/
H A Dxt_TCPMSS.c175 u8 nexthdr; local
179 nexthdr = ipv6h->nexthdr;
180 tcphoff = ipv6_skip_exthdr(*pskb, sizeof(*ipv6h), &nexthdr);

Completed in 113 milliseconds

123