/linux-3.4.99/net/ipv6/netfilter/ |
D | ip6table_mangle.c | 52 memcpy(&saddr, &ipv6_hdr(skb)->saddr, sizeof(saddr)); in ip6t_mangle_out() 53 memcpy(&daddr, &ipv6_hdr(skb)->daddr, sizeof(daddr)); in ip6t_mangle_out() 55 hop_limit = ipv6_hdr(skb)->hop_limit; in ip6t_mangle_out() 58 flowlabel = *((u_int32_t *)ipv6_hdr(skb)); in ip6t_mangle_out() 64 (memcmp(&ipv6_hdr(skb)->saddr, &saddr, sizeof(saddr)) || in ip6t_mangle_out() 65 memcmp(&ipv6_hdr(skb)->daddr, &daddr, sizeof(daddr)) || in ip6t_mangle_out() 67 ipv6_hdr(skb)->hop_limit != hop_limit || in ip6t_mangle_out() 68 flowlabel != *((u_int32_t *)ipv6_hdr(skb)))) in ip6t_mangle_out()
|
D | ip6t_eui64.c | 37 if (ipv6_hdr(skb)->version == 0x6) { in eui64_mt6() 44 if (!memcmp(ipv6_hdr(skb)->saddr.s6_addr + 8, eui64, in eui64_mt6()
|
D | ip6t_REJECT.c | 46 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in send_reset() 129 ip6h = ipv6_hdr(nskb); in send_reset() 162 tcph->check = csum_ipv6_magic(&ipv6_hdr(nskb)->saddr, in send_reset() 163 &ipv6_hdr(nskb)->daddr, in send_reset()
|
D | ip6t_rpfilter.c | 33 struct ipv6hdr *iph = ipv6_hdr(skb); in rpfilter_lookup_reverse6() 84 iph = ipv6_hdr(skb); in rpfilter_mt()
|
D | nf_conntrack_reasm.c | 202 end = offset + (ntohs(ipv6_hdr(skb)->payload_len) - in nf_ct_frag6_queue() 203 ((u8 *)(fhdr + 1) - (u8 *)(ipv6_hdr(skb) + 1))); in nf_ct_frag6_queue() 419 ipv6_hdr(head)->payload_len = htons(payload_len); in nf_ct_frag6_reasm() 474 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in find_prev_fhdr() 533 if (ipv6_hdr(skb)->payload_len == 0) { in nf_ct_frag6_gather() 555 hdr = ipv6_hdr(clone); in nf_ct_frag6_gather()
|
/linux-3.4.99/net/ipv6/ |
D | mip6.c | 131 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_destopt_input() 157 iph = ipv6_hdr(skb); in mip6_destopt_output() 233 if (!mip6_report_rl_allow(&stamp, &ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 234 hao ? &hao->addr : &ipv6_hdr(skb)->saddr, in mip6_destopt_reject() 239 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 242 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in mip6_destopt_reject() 267 (struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1); in mip6_destopt_offset() 272 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_destopt_offset() 354 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_rthdr_input() 377 iph = ipv6_hdr(skb); in mip6_rthdr_output() [all …]
|
D | netfilter.c | 17 const struct ipv6hdr *iph = ipv6_hdr(skb); in ip6_route_me_harder() 71 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_saveroute() 85 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_reroute() 119 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum() 153 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum_partial()
|
D | xfrm6_mode_transport.c | 28 iph = ipv6_hdr(skb); in xfrm6_transport_output() 35 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_transport_output() 56 ipv6_hdr(skb)->payload_len = htons(skb->len + ihl - in xfrm6_transport_input()
|
D | ndisc.c | 693 if (skb && ipv6_chk_addr(dev_net(dev), &ipv6_hdr(skb)->saddr, dev, 1)) in ndisc_solicit() 694 saddr = &ipv6_hdr(skb)->saddr; in ndisc_solicit() 730 const struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_ns() 731 const struct in6_addr *daddr = &ipv6_hdr(skb)->daddr; in ndisc_recv_ns() 906 const struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_na() 907 const struct in6_addr *daddr = &ipv6_hdr(skb)->daddr; in ndisc_recv_na() 1020 const struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_rs() 1104 &ipv6_hdr(ra)->saddr); in ndisc_ra_useropt() 1144 if (!(ipv6_addr_type(&ipv6_hdr(skb)->saddr) & IPV6_ADDR_LINKLOCAL)) { in ndisc_router_discovery() 1212 if (ipv6_chk_addr(dev_net(in6_dev->dev), &ipv6_hdr(skb)->saddr, NULL, 0)) in ndisc_router_discovery() [all …]
|
D | xfrm6_mode_tunnel.c | 23 const struct ipv6hdr *outer_iph = ipv6_hdr(skb); in ipip6_ecn_decapsulate() 44 top_iph = ipv6_hdr(skb); in xfrm6_mode_tunnel_output() 77 ipv6_copy_dscp(ipv6_get_dsfield(ipv6_hdr(skb)), in xfrm6_mode_tunnel_input()
|
D | tcp_ipv6.c | 120 return secure_tcpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_sequence() 121 ipv6_hdr(skb)->saddr.s6_addr32, in tcp_v6_init_sequence() 365 if (ipv6_hdr(skb)->hop_limit < inet6_sk(sk)->min_hopcount) { in tcp_v6_err() 660 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_md5_hash_skb() 698 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_inbound_md5_hash() 786 ipv6h = ipv6_hdr(skb); in tcp_v6_gso_send_check() 819 const struct ipv6hdr *iph = ipv6_hdr(skb); in tcp6_gro_complete() 884 &ipv6_hdr(skb)->saddr, in tcp_v6_send_response() 885 &ipv6_hdr(skb)->daddr, t1); in tcp_v6_send_response() 890 fl6.daddr = ipv6_hdr(skb)->saddr; in tcp_v6_send_response() [all …]
|
D | exthdrs.c | 128 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown() 203 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 240 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 341 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr) || in ipv6_rthdr_rcv() 438 (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in ipv6_rthdr_rcv() 465 *addr = ipv6_hdr(skb)->daddr; in ipv6_rthdr_rcv() 466 ipv6_hdr(skb)->daddr = daddr; in ipv6_rthdr_rcv() 477 if (ipv6_hdr(skb)->hop_limit <= 1) { in ipv6_rthdr_rcv() 485 ipv6_hdr(skb)->hop_limit--; in ipv6_rthdr_rcv() 603 if (ipv6_hdr(skb)->payload_len) { in ipv6_hop_jumbo()
|
D | xfrm6_mode_ro.c | 48 iph = ipv6_hdr(skb); in xfrm6_ro_output() 55 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_ro_output()
|
D | xfrm6_mode_beet.c | 24 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_beet_make_header() 61 top_iph = ipv6_hdr(skb); in xfrm6_beet_output() 96 ip6h = ipv6_hdr(skb); in xfrm6_beet_input()
|
D | xfrm6_output.c | 52 fl6.daddr = ipv6_hdr(skb)->daddr; in xfrm6_local_rxpmtu() 63 fl6.daddr = ipv6_hdr(skb)->daddr; in xfrm6_local_error() 100 XFRM_MODE_SKB_CB(skb)->protocol = ipv6_hdr(skb)->nexthdr; in xfrm6_extract_output()
|
D | ip6_input.c | 100 hdr = ipv6_hdr(skb); in ipv6_rcv() 159 hdr = ipv6_hdr(skb); in ipv6_rcv() 227 hdr = ipv6_hdr(skb); in ip6_input_finish() 281 hdr = ipv6_hdr(skb); in ip6_mc_input()
|
D | datagram.c | 259 iph = ipv6_hdr(skb); in ipv6_local_error() 296 iph = ipv6_hdr(skb); in ipv6_local_rxpmtu() 306 mtu_info->ip6m_addr.sin6_addr = ipv6_hdr(skb)->daddr; in ipv6_local_rxpmtu() 381 sin->sin6_addr = ipv6_hdr(skb)->saddr; in ipv6_recv_error() 482 src_info.ipi6_addr = ipv6_hdr(skb)->daddr; in datagram_recv_ctl() 487 int hlim = ipv6_hdr(skb)->hop_limit; in datagram_recv_ctl() 492 int tclass = ipv6_tclass(ipv6_hdr(skb)); in datagram_recv_ctl() 519 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in datagram_recv_ctl() 557 src_info.ipi6_addr = ipv6_hdr(skb)->daddr; in datagram_recv_ctl() 561 int hlim = ipv6_hdr(skb)->hop_limit; in datagram_recv_ctl() [all …]
|
D | syncookies.c | 120 const struct ipv6hdr *iph = ipv6_hdr(skb); in cookie_v6_init_sequence() 142 const struct ipv6hdr *iph = ipv6_hdr(skb); in cookie_check() 203 ireq6->rmt_addr = ipv6_hdr(skb)->saddr; in cookie_v6_check() 204 ireq6->loc_addr = ipv6_hdr(skb)->daddr; in cookie_v6_check()
|
D | icmp.c | 134 int ptr = (u8 *)(ipv6_hdr(skb) + 1) - skb->data; in is_ineligible() 136 __u8 nexthdr = ipv6_hdr(skb)->nexthdr; in is_ineligible() 282 struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_addr_swap() 372 struct ipv6hdr *hdr = ipv6_hdr(skb); in icmpv6_send() 533 saddr = &ipv6_hdr(skb)->daddr; in icmpv6_echo_reply() 543 fl6.daddr = ipv6_hdr(skb)->saddr; in icmpv6_echo_reply() 676 saddr = &ipv6_hdr(skb)->saddr; in icmpv6_rcv() 677 daddr = &ipv6_hdr(skb)->daddr; in icmpv6_rcv()
|
D | ip6_output.c | 68 ipv6_hdr(skb)->payload_len = htons(len); in __ip6_local_out() 108 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) { in ip6_finish_output2() 114 ipv6_chk_mcast_addr(dev, &ipv6_hdr(skb)->daddr, in ip6_finish_output2() 115 &ipv6_hdr(skb)->saddr))) { in ip6_finish_output2() 126 if (ipv6_hdr(skb)->hop_limit == 0) { in ip6_finish_output2() 225 hdr = ipv6_hdr(skb); in ip6_xmit() 285 hdr = ipv6_hdr(skb); in ip6_nd_hdr() 330 struct ipv6hdr *hdr = ipv6_hdr(skb); in ip6_forward_proxy_check() 399 struct ipv6hdr *hdr = ipv6_hdr(skb); in ip6_forward() 534 hdr = ipv6_hdr(skb); in ip6_forward() [all …]
|
D | ip6mr.c | 641 (csum_ipv6_magic(&ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr, in pim6_rcv() 843 if (ipv6_hdr(skb)->version == 0) { in ip6mr_destroy_unres() 1052 if (ipv6_hdr(skb)->version == 0) { in ip6mr_cache_resolve() 1115 msg->im6_src = ipv6_hdr(pkt)->saddr; in ip6mr_cache_report() 1116 msg->im6_dst = ipv6_hdr(pkt)->daddr; in ip6mr_cache_report() 1128 skb_copy_to_linear_data(skb, ipv6_hdr(pkt), sizeof(struct ipv6hdr)); in ip6mr_cache_report() 1141 msg->im6_src = ipv6_hdr(pkt)->saddr; in ip6mr_cache_report() 1142 msg->im6_dst = ipv6_hdr(pkt)->daddr; in ip6mr_cache_report() 1179 if (ipv6_addr_equal(&c->mf6c_mcastgrp, &ipv6_hdr(skb)->daddr) && in ip6mr_cache_unresolved() 1180 ipv6_addr_equal(&c->mf6c_origin, &ipv6_hdr(skb)->saddr)) { in ip6mr_cache_unresolved() [all …]
|
/linux-3.4.99/net/netfilter/ |
D | xt_DSCP.c | 51 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg6() 57 ipv6_change_dsfield(ipv6_hdr(skb), (__u8)(~XT_DSCP_MASK), in dscp_tg6() 98 struct ipv6hdr *iph = ipv6_hdr(skb); in tos_tg6() 107 iph = ipv6_hdr(skb); in tos_tg6()
|
D | xt_dscp.c | 40 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_mt6() 65 return ((ipv6_get_dsfield(ipv6_hdr(skb)) & info->tos_mask) == in tos_mt()
|
/linux-3.4.99/include/net/ |
D | inet6_hashtables.h | 104 &ipv6_hdr(skb)->saddr, sport, in __inet6_lookup_skb() 105 &ipv6_hdr(skb)->daddr, ntohs(dport), in __inet6_lookup_skb()
|
/linux-3.4.99/net/dccp/ |
D | ipv6.c | 75 return secure_dccpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, in dccp_v6_init_sequence() 76 ipv6_hdr(skb)->saddr.s6_addr32, in dccp_v6_init_sequence() 312 rxip6h = ipv6_hdr(rxskb); in dccp_v6_ctl_send_reset() 351 const struct ipv6hdr *iph = ipv6_hdr(skb); in dccp_v6_hnd_req() 423 ireq6->rmt_addr = ipv6_hdr(skb)->saddr; in dccp_v6_conn_request() 424 ireq6->loc_addr = ipv6_hdr(skb)->daddr; in dccp_v6_conn_request() 503 newnp->mcast_hops = ipv6_hdr(skb)->hop_limit; in dccp_v6_request_recv_sock() 589 newnp->mcast_hops = ipv6_hdr(skb)->hop_limit; in dccp_v6_request_recv_sock() 767 if (dccp_v6_csum_finish(skb, &ipv6_hdr(skb)->saddr, in dccp_v6_rcv() 768 &ipv6_hdr(skb)->daddr)) { in dccp_v6_rcv()
|