/linux-2.6.39/net/ipv6/ |
D | exthdrs_core.c | 11 int ipv6_ext_hdr(u8 nexthdr) in ipv6_ext_hdr() argument 16 return (nexthdr == NEXTHDR_HOP) || in ipv6_ext_hdr() 17 (nexthdr == NEXTHDR_ROUTING) || in ipv6_ext_hdr() 18 (nexthdr == NEXTHDR_FRAGMENT) || in ipv6_ext_hdr() 19 (nexthdr == NEXTHDR_AUTH) || in ipv6_ext_hdr() 20 (nexthdr == NEXTHDR_NONE) || in ipv6_ext_hdr() 21 (nexthdr == NEXTHDR_DEST); in ipv6_ext_hdr() 68 u8 nexthdr = *nexthdrp; in ipv6_skip_exthdr() local 70 while (ipv6_ext_hdr(nexthdr)) { in ipv6_skip_exthdr() 74 if (nexthdr == NEXTHDR_NONE) in ipv6_skip_exthdr() [all …]
|
D | mip6.c | 131 int err = destopt->nexthdr; in mip6_destopt_input() 151 u8 nexthdr; in mip6_destopt_output() local 157 nexthdr = *skb_mac_header(skb); in mip6_destopt_output() 161 dstopt->nexthdr = nexthdr; in mip6_destopt_output() 261 u8 **nexthdr) in mip6_destopt_offset() argument 270 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_destopt_offset() 274 switch (**nexthdr) { in mip6_destopt_offset() 300 *nexthdr = &exthdr->nexthdr; in mip6_destopt_offset() 354 int err = rt2->rt_hdr.nexthdr; in mip6_rthdr_input() 372 u8 nexthdr; in mip6_rthdr_output() local [all …]
|
D | ip6_input.c | 115 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ipv6_rcv() 120 if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) { in ipv6_rcv() 133 if (hdr->nexthdr == NEXTHDR_HOP) { in ipv6_rcv() 165 int nexthdr, raw; in ip6_input_finish() local 180 nexthdr = skb_network_header(skb)[nhoff]; in ip6_input_finish() 182 raw = raw6_local_deliver(skb, nexthdr); in ip6_input_finish() 184 hash = nexthdr & (MAX_INET_PROTOS - 1); in ip6_input_finish() 202 !ipv6_is_mld(skb, nexthdr)) in ip6_input_finish() 274 u8 nexthdr = hdr->nexthdr; in ip6_mc_input() local 283 if (!ipv6_ext_hdr(nexthdr)) { in ip6_mc_input() [all …]
|
D | ah6.c | 262 int nexthdr = iph->nexthdr; in ipv6_clear_mutable_options() local 267 switch (nexthdr) { in ipv6_clear_mutable_options() 275 nexthdr == NEXTHDR_HOP ? in ipv6_clear_mutable_options() 289 nexthdr = exthdr.opth->nexthdr; in ipv6_clear_mutable_options() 327 err = ah->nexthdr; in ah6_output_done() 340 u8 nexthdr; in ah6_output() local 378 nexthdr = *skb_mac_header(skb); in ah6_output() 400 ah->nexthdr = nexthdr; in ah6_output() 474 err = ah->nexthdr; in ah6_input_done() 511 int nexthdr; in ah6_input() local [all …]
|
D | xfrm6_mode_beet.c | 30 iph->nexthdr = XFRM_MODE_SKB_CB(skb)->protocol; in xfrm6_beet_make_header() 57 offsetof(struct ipv6hdr, nexthdr); in xfrm6_beet_output() 70 ph->nexthdr = top_iph->nexthdr; in xfrm6_beet_output() 74 top_iph->nexthdr = IPPROTO_BEETPH; in xfrm6_beet_output()
|
D | xfrm6_policy.c | 130 u8 nexthdr = nh[IP6CB(skb)->nhoff]; in _decode_session6() local 143 switch (nexthdr) { in _decode_session6() 150 nexthdr = exthdr->nexthdr; in _decode_session6() 166 fl6->flowi6_proto = nexthdr; in _decode_session6() 176 fl6->flowi6_proto = nexthdr; in _decode_session6() 187 fl6->flowi6_proto = nexthdr; in _decode_session6() 197 fl6->flowi6_proto = nexthdr; in _decode_session6()
|
D | ip6_output.c | 236 hdr->nexthdr = proto; in ip6_xmit() 288 hdr->nexthdr = proto; in ip6_nd_hdr() 329 u8 nexthdr = hdr->nexthdr; in ip6_forward_proxy_check() local 332 if (ipv6_ext_hdr(nexthdr)) { in ip6_forward_proxy_check() 333 offset = ipv6_skip_exthdr(skb, sizeof(*hdr), &nexthdr); in ip6_forward_proxy_check() 339 if (nexthdr == IPPROTO_ICMPV6) { in ip6_forward_proxy_check() 560 int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) in ip6_find_1stfragopt() argument 567 *nexthdr = &ipv6_hdr(skb)->nexthdr; in ip6_find_1stfragopt() 571 switch (**nexthdr) { in ip6_find_1stfragopt() 591 *nexthdr = &exthdr->nexthdr; in ip6_find_1stfragopt() [all …]
|
D | icmp.c | 137 __u8 nexthdr = ipv6_hdr(skb)->nexthdr; in is_ineligible() local 142 ptr = ipv6_skip_exthdr(skb, ptr, &nexthdr); in is_ineligible() 145 if (nexthdr == IPPROTO_ICMPV6) { in is_ineligible() 603 u8 nexthdr; in icmpv6_notify() local 608 nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr; in icmpv6_notify() 609 if (ipv6_ext_hdr(nexthdr)) { in icmpv6_notify() 611 inner_offset = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr); in icmpv6_notify() 629 hash = nexthdr & (MAX_INET_PROTOS - 1); in icmpv6_notify() 637 raw6_icmp_error(skb, nexthdr, type, code, inner_offset, info); in icmpv6_notify()
|
D | xfrm6_mode_tunnel.c | 42 offsetof(struct ipv6hdr, nexthdr); in xfrm6_mode_tunnel_output() 50 top_iph->nexthdr = xfrm_af2proto(skb_dst(skb)->ops->family); in xfrm6_mode_tunnel_output()
|
/linux-2.6.39/net/ipv6/netfilter/ |
D | ip6t_ipv6header.c | 35 u8 nexthdr; in ipv6header_mt6() local 41 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6header_mt6() 48 while (ip6t_ext_hdr(nexthdr)) { in ipv6header_mt6() 54 if (nexthdr == NEXTHDR_NONE) { in ipv6header_mt6() 62 if (nexthdr == NEXTHDR_ESP) { in ipv6header_mt6() 71 if (nexthdr == NEXTHDR_FRAGMENT) in ipv6header_mt6() 73 else if (nexthdr == NEXTHDR_AUTH) in ipv6header_mt6() 79 switch (nexthdr) { in ipv6header_mt6() 100 nexthdr = hp->nexthdr; in ipv6header_mt6() 107 if (nexthdr != NEXTHDR_NONE && nexthdr != NEXTHDR_ESP) in ipv6header_mt6()
|
D | nf_conntrack_l3proto_ipv6.c | 91 u8 nexthdr = *nexthdrp; in nf_ct_ipv6_skip_exthdr() local 93 while (ipv6_ext_hdr(nexthdr)) { in nf_ct_ipv6_skip_exthdr() 99 if (nexthdr == NEXTHDR_NONE) in nf_ct_ipv6_skip_exthdr() 101 if (nexthdr == NEXTHDR_FRAGMENT) in nf_ct_ipv6_skip_exthdr() 105 if (nexthdr == NEXTHDR_AUTH) in nf_ct_ipv6_skip_exthdr() 110 nexthdr = hdr.nexthdr; in nf_ct_ipv6_skip_exthdr() 115 *nexthdrp = nexthdr; in nf_ct_ipv6_skip_exthdr() 126 if (skb_copy_bits(skb, nhoff + offsetof(struct ipv6hdr, nexthdr), in ipv6_get_l4proto() 158 unsigned char pnum = ipv6_hdr(skb)->nexthdr; in ipv6_confirm()
|
D | nf_conntrack_reasm.c | 474 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in find_prev_fhdr() local 476 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr() 481 while (nexthdr != NEXTHDR_FRAGMENT) { in find_prev_fhdr() 485 if (!ipv6_ext_hdr(nexthdr)) { in find_prev_fhdr() 488 if (nexthdr == NEXTHDR_NONE) { in find_prev_fhdr() 498 if (nexthdr == NEXTHDR_AUTH) in find_prev_fhdr() 503 prevhdr = nexthdr; in find_prev_fhdr() 506 nexthdr = hdr.nexthdr; in find_prev_fhdr()
|
D | ip6_tables.c | 83 ip6t_ext_hdr(u8 nexthdr) in ip6t_ext_hdr() argument 85 return (nexthdr == IPPROTO_HOPOPTS) || in ip6t_ext_hdr() 86 (nexthdr == IPPROTO_ROUTING) || in ip6t_ext_hdr() 87 (nexthdr == IPPROTO_FRAGMENT) || in ip6t_ext_hdr() 88 (nexthdr == IPPROTO_ESP) || in ip6t_ext_hdr() 89 (nexthdr == IPPROTO_AH) || in ip6t_ext_hdr() 90 (nexthdr == IPPROTO_NONE) || in ip6t_ext_hdr() 91 (nexthdr == IPPROTO_DSTOPTS); in ip6t_ext_hdr() 2307 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in ipv6_find_hdr() local 2313 while (nexthdr != target) { in ipv6_find_hdr() [all …]
|
/linux-2.6.39/net/xfrm/ |
D | xfrm_input.c | 51 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument 56 switch (nexthdr) { in xfrm_parse_spi() 105 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 145 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { in xfrm_input() 156 x = xfrm_state_lookup(net, skb->mark, daddr, spi, nexthdr, family); in xfrm_input() 195 nexthdr = x->type->input(x, skb); in xfrm_input() 197 if (nexthdr == -EINPROGRESS) in xfrm_input() 202 if (nexthdr <= 0) { in xfrm_input() 203 if (nexthdr == -EBADMSG) { in xfrm_input() 222 XFRM_MODE_SKB_CB(skb)->protocol = nexthdr; in xfrm_input() [all …]
|
D | xfrm_ipcomp.c | 109 int nexthdr; in ipcomp_input() local 120 nexthdr = ipch->nexthdr; in ipcomp_input() 128 err = nexthdr; in ipcomp_input() 190 ipch->nexthdr = *skb_mac_header(skb); in ipcomp_output()
|
/linux-2.6.39/net/netfilter/ipset/ |
D | ip_set_getport.c | 103 u8 nexthdr; in ip_set_get_ip6_port() local 105 nexthdr = ipv6_hdr(skb)->nexthdr; in ip_set_get_ip6_port() 106 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr); in ip_set_get_ip6_port() 110 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
|
/linux-2.6.39/net/netfilter/ |
D | xt_AUDIT.c | 100 u8 nexthdr; in audit_ip6() local 109 nexthdr = ih->nexthdr; in audit_ip6() 111 &nexthdr); in audit_ip6() 114 &ih->saddr, &ih->daddr, nexthdr); in audit_ip6() 117 audit_proto(ab, skb, nexthdr, offset); in audit_ip6()
|
D | xt_TCPOPTSTRIP.c | 89 u_int8_t nexthdr; in tcpoptstrip_tg6() local 91 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6() 92 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr); in tcpoptstrip_tg6()
|
D | xt_TCPMSS.c | 206 u8 nexthdr; in tcpmss_tg6() local 210 nexthdr = ipv6h->nexthdr; in tcpmss_tg6() 211 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr); in tcpmss_tg6()
|
/linux-2.6.39/net/bridge/netfilter/ |
D | ebt_log.c | 115 uint8_t nexthdr; in ebt_log_packet() local 124 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); in ebt_log_packet() 125 nexthdr = ih->nexthdr; in ebt_log_packet() 126 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr); in ebt_log_packet() 129 print_ports(skb, nexthdr, offset_ph); in ebt_log_packet()
|
D | ebt_ip6.c | 57 uint8_t nexthdr = ih6->nexthdr; in ebt_ip6_mt() local 60 offset_ph = ipv6_skip_exthdr(skb, sizeof(_ip6h), &nexthdr); in ebt_ip6_mt() 63 if (FWINV(info->protocol != nexthdr, EBT_IP6_PROTO)) in ebt_ip6_mt()
|
/linux-2.6.39/include/linux/ |
D | ip.h | 122 __u8 nexthdr; member 137 __u8 nexthdr; member 143 __u8 nexthdr; member
|
/linux-2.6.39/security/ |
D | lsm_audit.c | 116 u8 nexthdr; in ipv6_skb_to_auditdata() local 128 nexthdr = ip6->nexthdr; in ipv6_skb_to_auditdata() 129 offset = ipv6_skip_exthdr(skb, offset, &nexthdr); in ipv6_skb_to_auditdata() 133 *proto = nexthdr; in ipv6_skb_to_auditdata() 134 switch (nexthdr) { in ipv6_skb_to_auditdata()
|
/linux-2.6.39/net/sched/ |
D | act_csum.c | 432 u8 nexthdr; in tcf_csum_ipv6() local 444 nexthdr = ip6h->nexthdr; in tcf_csum_ipv6() 447 switch (nexthdr) { in tcf_csum_ipv6() 459 if ((nexthdr == NEXTHDR_HOP) && in tcf_csum_ipv6() 462 nexthdr = ip6xh->nexthdr; in tcf_csum_ipv6()
|
/linux-2.6.39/net/ipv4/ |
D | ah4.c | 139 err = ah->nexthdr; in ah_output_done() 195 ah->nexthdr = *skb_mac_header(skb); in ah_output() 272 err = ah->nexthdr; in ah_input_done() 282 int nexthdr; in ah_input() local 302 nexthdr = ah->nexthdr; in ah_input() 388 err = nexthdr; in ah_input()
|