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

1234567891011

/linux-master/net/ipv6/
H A Dexthdrs_core.c10 * 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 Dmcast_snoop.c41 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 Doutput_core.c58 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 Drpl.c38 outhdr->nexthdr = inhdr->nexthdr;
98 outhdr->nexthdr = inhdr->nexthdr;
H A Dip6_offload.c65 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 Dah6.c247 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 Dip6t_ipv6header.c32 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 Dnhc.c49 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 Dnhc.h17 * @_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 Dparse_varlen.c83 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 Dtest_cgrp2_tc.bpf.c43 ip6h->nexthdr != IPPROTO_ICMPV6) {
45 eth->h_proto, ip6h->nexthdr);
/linux-master/net/netfilter/ipset/
H A Dip_set_getport.c136 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 Dnf_conntrack_ovs.c41 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 Dnf_nat_ovs.c35 u8 nexthdr = ipv6_hdr(skb)->nexthdr; local
38 &nexthdr, &frag_off);
40 if (hdrlen >= 0 && nexthdr == IPPROTO_ICMPV6) {
H A Dxt_AUDIT.c50 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 Dxt_TCPOPTSTRIP.c100 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 Dseg6.h25 __u8 nexthdr; member in struct:ipv6_sr_hdr
H A Drpl.h20 __u8 nexthdr; member in struct:ipv6_rpl_sr_hdr
H A Dip.h113 __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 Dipv6.h51 __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 Dseg6.h25 __u8 nexthdr; member in struct:ipv6_sr_hdr
/linux-master/include/net/
H A Drawv6.h15 void raw6_icmp_error(struct sk_buff *, int nexthdr,
/linux-master/include/linux/
H A Dnetfilter_ipv6.h15 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 Debt_ip6.c63 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 Debt_log.c118 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);

Completed in 196 milliseconds

1234567891011