Searched defs:nexthdr (Results 1 - 25 of 37) sorted by relevance

12

/net/ipv6/netfilter/
H A Dip6t_ipv6header.c35 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 Dip6t_SYNPROXY.c32 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 Dnf_conntrack_l3proto_ipv6.c76 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 Dnf_nat_l3proto_ipv6.c86 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 Dxfrm6_input.c24 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi) argument
28 return xfrm_input(skb, nexthdr, spi, 0);
H A Dip6_input.c55 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 Doutput_core.c45 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 Dudp_offload.c28 u8 nexthdr; local
97 nexthdr = *prevhdr;
109 fptr->nexthdr = nexthdr;
H A Dexthdrs_core.c9 * 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 Dmip6.c134 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 Dxfrm6_policy.c137 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 Debt_ip6.c59 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 Debt_log.c119 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 Dip_set_getport.c134 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 Dxt_AUDIT.c100 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 Dxt_TCPOPTSTRIP.c104 u_int8_t nexthdr; local
107 nexthdr = ipv6h->nexthdr;
108 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off);
H A Dxt_HMARK.c173 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 Dxt_TCPMSS.c230 u8 nexthdr; local
235 nexthdr = ipv6h->nexthdr;
236 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off);
/net/ipv4/
H A Dxfrm4_protocol.c66 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 Dah4.c204 ah->nexthdr = *skb_mac_header(skb);
281 err = ah->nexthdr;
300 int nexthdr; local
324 nexthdr = ah->nexthdr;
423 err = nexthdr;
H A Dip_vti.c53 static int vti_input(struct sk_buff *skb, int nexthdr, __be32 spi, argument
70 return xfrm_input(skb, nexthdr, spi, encap_type);
H A Desp4.c284 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 Dxfrm_input.c126 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 Dxfrm_ipcomp.c112 int nexthdr; local
123 nexthdr = ipch->nexthdr;
131 err = nexthdr;
193 ipch->nexthdr = *skb_mac_header(skb);
/net/sched/
H A Dact_csum.c424 u8 nexthdr; local
436 nexthdr = ip6h->nexthdr;
439 switch (nexthdr) {
452 if ((nexthdr == NEXTHDR_HOP) &&
455 nexthdr = ip6xh->nexthdr;

Completed in 238 milliseconds

12