/linux-2.6.39/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()
|
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() 128 ip6h = ipv6_hdr(nskb); in send_reset() 161 tcph->check = csum_ipv6_magic(&ipv6_hdr(nskb)->saddr, in send_reset() 162 &ipv6_hdr(nskb)->daddr, in send_reset()
|
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-2.6.39/net/ipv6/ |
D | mip6.c | 129 struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_destopt_input() 155 iph = ipv6_hdr(skb); in mip6_destopt_output() 231 if (!mip6_report_rl_allow(&stamp, &ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 232 hao ? &hao->addr : &ipv6_hdr(skb)->saddr, in mip6_destopt_reject() 237 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 240 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in mip6_destopt_reject() 265 (struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1); in mip6_destopt_offset() 270 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_destopt_offset() 352 struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_rthdr_input() 375 iph = ipv6_hdr(skb); in mip6_rthdr_output() [all …]
|
D | netfilter.c | 16 struct ipv6hdr *iph = ipv6_hdr(skb); in ip6_route_me_harder() 70 struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_saveroute() 84 struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_reroute() 111 struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum() 145 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 | 691 if (skb && ipv6_chk_addr(dev_net(dev), &ipv6_hdr(skb)->saddr, dev, 1)) in ndisc_solicit() 692 saddr = &ipv6_hdr(skb)->saddr; in ndisc_solicit() 728 struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_ns() 729 struct in6_addr *daddr = &ipv6_hdr(skb)->daddr; in ndisc_recv_ns() 904 struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_na() 905 struct in6_addr *daddr = &ipv6_hdr(skb)->daddr; in ndisc_recv_na() 1017 struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_rs() 1101 &ipv6_hdr(ra)->saddr); in ndisc_ra_useropt() 1141 if (!(ipv6_addr_type(&ipv6_hdr(skb)->saddr) & IPV6_ADDR_LINKLOCAL)) { in ndisc_router_discovery() 1220 rt = rt6_get_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev); in ndisc_router_discovery() [all …]
|
D | xfrm6_mode_tunnel.c | 23 struct ipv6hdr *outer_iph = ipv6_hdr(skb); in ipip6_ecn_decapsulate() 44 top_iph = ipv6_hdr(skb); in xfrm6_mode_tunnel_output() 78 ipv6_copy_dscp(ipv6_get_dsfield(ipv6_hdr(skb)), in xfrm6_mode_tunnel_input()
|
D | tcp_ipv6.c | 118 return secure_tcpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_sequence() 119 ipv6_hdr(skb)->saddr.s6_addr32, in tcp_v6_init_sequence() 364 if (ipv6_hdr(skb)->hop_limit < inet6_sk(sk)->min_hopcount) { in tcp_v6_err() 822 struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_md5_hash_skb() 860 struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_inbound_md5_hash() 948 ipv6h = ipv6_hdr(skb); in tcp_v6_gso_send_check() 981 struct ipv6hdr *iph = ipv6_hdr(skb); in tcp6_gro_complete() 1045 &ipv6_hdr(skb)->saddr, in tcp_v6_send_response() 1046 &ipv6_hdr(skb)->daddr, t1); in tcp_v6_send_response() 1051 ipv6_addr_copy(&fl6.daddr, &ipv6_hdr(skb)->saddr); in tcp_v6_send_response() [all …]
|
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() 63 top_iph = ipv6_hdr(skb); in xfrm6_beet_output() 102 ip6h = ipv6_hdr(skb); in xfrm6_beet_input()
|
D | exthdrs.c | 127 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown() 202 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 239 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 343 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr) || in ipv6_rthdr_rcv() 440 (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in ipv6_rthdr_rcv() 467 ipv6_addr_copy(addr, &ipv6_hdr(skb)->daddr); in ipv6_rthdr_rcv() 468 ipv6_addr_copy(&ipv6_hdr(skb)->daddr, &daddr); in ipv6_rthdr_rcv() 479 if (ipv6_hdr(skb)->hop_limit <= 1) { in ipv6_rthdr_rcv() 487 ipv6_hdr(skb)->hop_limit--; in ipv6_rthdr_rcv() 605 if (ipv6_hdr(skb)->payload_len) { in ipv6_hop_jumbo()
|
D | ip6_input.c | 100 hdr = ipv6_hdr(skb); in ipv6_rcv() 130 hdr = ipv6_hdr(skb); in ipv6_rcv() 198 hdr = ipv6_hdr(skb); in ip6_input_finish() 252 hdr = ipv6_hdr(skb); in ip6_mc_input()
|
D | datagram.c | 252 iph = ipv6_hdr(skb); in ipv6_local_error() 289 iph = ipv6_hdr(skb); in ipv6_local_rxpmtu() 303 ipv6_addr_copy(&mtu_info->ip6m_addr.sin6_addr, &ipv6_hdr(skb)->daddr); in ipv6_local_rxpmtu() 376 ipv6_addr_copy(&sin->sin6_addr, &ipv6_hdr(skb)->saddr); in ipv6_recv_error() 475 ipv6_addr_copy(&src_info.ipi6_addr, &ipv6_hdr(skb)->daddr); in datagram_recv_ctl() 480 int hlim = ipv6_hdr(skb)->hop_limit; in datagram_recv_ctl() 485 int tclass = (ntohl(*(__be32 *)ipv6_hdr(skb)) >> 20) & 0xff; in datagram_recv_ctl() 512 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in datagram_recv_ctl() 550 ipv6_addr_copy(&src_info.ipi6_addr, &ipv6_hdr(skb)->daddr); in datagram_recv_ctl() 554 int hlim = ipv6_hdr(skb)->hop_limit; in datagram_recv_ctl() [all …]
|
D | ip6_output.c | 68 ipv6_hdr(skb)->payload_len = htons(len); in __ip6_local_out() 107 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) { in ip6_finish_output2() 113 ipv6_chk_mcast_addr(dev, &ipv6_hdr(skb)->daddr, in ip6_finish_output2() 114 &ipv6_hdr(skb)->saddr))) { in ip6_finish_output2() 125 if (ipv6_hdr(skb)->hop_limit == 0) { in ip6_finish_output2() 221 hdr = ipv6_hdr(skb); in ip6_xmit() 283 hdr = ipv6_hdr(skb); in ip6_nd_hdr() 328 struct ipv6hdr *hdr = ipv6_hdr(skb); in ip6_forward_proxy_check() 385 struct ipv6hdr *hdr = ipv6_hdr(skb); in ip6_forward() 522 hdr = ipv6_hdr(skb); in ip6_forward() [all …]
|
D | syncookies.c | 119 struct ipv6hdr *iph = ipv6_hdr(skb); in cookie_v6_init_sequence() 141 struct ipv6hdr *iph = ipv6_hdr(skb); in cookie_check() 202 ipv6_addr_copy(&ireq6->rmt_addr, &ipv6_hdr(skb)->saddr); in cookie_v6_check() 203 ipv6_addr_copy(&ireq6->loc_addr, &ipv6_hdr(skb)->daddr); in cookie_v6_check()
|
D | icmp.c | 135 int ptr = (u8 *)(ipv6_hdr(skb) + 1) - skb->data; in is_ineligible() 137 __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 ipv6_addr_copy(&fl6.daddr, &ipv6_hdr(skb)->saddr); in icmpv6_echo_reply() 675 saddr = &ipv6_hdr(skb)->saddr; in icmpv6_rcv() 676 daddr = &ipv6_hdr(skb)->daddr; in icmpv6_rcv()
|
D | ip6mr.c | 633 (csum_ipv6_magic(&ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr, in pim6_rcv() 833 if (ipv6_hdr(skb)->version == 0) { in ip6mr_destroy_unres() 1042 if (ipv6_hdr(skb)->version == 0) { in ip6mr_cache_resolve() 1105 ipv6_addr_copy(&msg->im6_src, &ipv6_hdr(pkt)->saddr); in ip6mr_cache_report() 1106 ipv6_addr_copy(&msg->im6_dst, &ipv6_hdr(pkt)->daddr); in ip6mr_cache_report() 1118 skb_copy_to_linear_data(skb, ipv6_hdr(pkt), sizeof(struct ipv6hdr)); in ip6mr_cache_report() 1131 ipv6_addr_copy(&msg->im6_src, &ipv6_hdr(pkt)->saddr); in ip6mr_cache_report() 1132 ipv6_addr_copy(&msg->im6_dst, &ipv6_hdr(pkt)->daddr); in ip6mr_cache_report() 1169 if (ipv6_addr_equal(&c->mf6c_mcastgrp, &ipv6_hdr(skb)->daddr) && in ip6mr_cache_unresolved() 1170 ipv6_addr_equal(&c->mf6c_origin, &ipv6_hdr(skb)->saddr)) { in ip6mr_cache_unresolved() [all …]
|
/linux-2.6.39/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()
|
D | xt_TCPMSS.c | 164 ipv6_addr_copy(&fl6->daddr, &ipv6_hdr(skb)->saddr); in tcpmss_reverse_mtu() 205 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpmss_tg6() 221 ipv6h = ipv6_hdr(skb); in tcpmss_tg6()
|
/linux-2.6.39/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-2.6.39/net/sched/ |
D | cls_flow.c | 77 return ntohl(ipv6_hdr(skb)->saddr.s6_addr32[3]); in flow_get_src() 93 return ntohl(ipv6_hdr(skb)->daddr.s6_addr32[3]); in flow_get_dst() 108 ipv6_hdr(skb)->nexthdr : 0; in flow_get_proto() 141 iph = ipv6_hdr(skb); in flow_get_proto_src() 145 iph = ipv6_hdr(skb); in flow_get_proto_src() 183 iph = ipv6_hdr(skb); in flow_get_proto_dst() 187 iph = ipv6_hdr(skb); in flow_get_proto_dst()
|
/linux-2.6.39/net/dccp/ |
D | ipv6.c | 80 return secure_dccpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, in dccp_v6_init_sequence() 81 ipv6_hdr(skb)->saddr.s6_addr32, in dccp_v6_init_sequence() 316 rxip6h = ipv6_hdr(rxskb); in dccp_v6_ctl_send_reset() 355 const struct ipv6hdr *iph = ipv6_hdr(skb); in dccp_v6_hnd_req() 427 ipv6_addr_copy(&ireq6->rmt_addr, &ipv6_hdr(skb)->saddr); in dccp_v6_conn_request() 428 ipv6_addr_copy(&ireq6->loc_addr, &ipv6_hdr(skb)->daddr); in dccp_v6_conn_request() 506 newnp->mcast_hops = ipv6_hdr(skb)->hop_limit; in dccp_v6_request_recv_sock() 592 newnp->mcast_hops = ipv6_hdr(skb)->hop_limit; in dccp_v6_request_recv_sock() 769 if (dccp_v6_csum_finish(skb, &ipv6_hdr(skb)->saddr, in dccp_v6_rcv() 770 &ipv6_hdr(skb)->daddr)) { in dccp_v6_rcv()
|