/net/ipv6/netfilter/ |
D | ip6t_NPT.c | 25 ipv6_addr_prefix(&pfx, &npt->src_pfx.in6, npt->src_pfx_len); in ip6t_npt_checkentry() 26 if (!ipv6_addr_equal(&pfx, &npt->src_pfx.in6)) in ip6t_npt_checkentry() 28 ipv6_addr_prefix(&pfx, &npt->dst_pfx.in6, npt->dst_pfx_len); in ip6t_npt_checkentry() 29 if (!ipv6_addr_equal(&pfx, &npt->dst_pfx.in6)) in ip6t_npt_checkentry() 32 src_sum = csum_partial(&npt->src_pfx.in6, sizeof(npt->src_pfx.in6), 0); in ip6t_npt_checkentry() 33 dst_sum = csum_partial(&npt->dst_pfx.in6, sizeof(npt->dst_pfx.in6), 0); in ip6t_npt_checkentry() 56 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx]; in ip6t_npt_map_pfx() 113 if (ipv6_addr_cmp(&bounced_pfx, &npt->src_pfx.in6) == 0) in ip6t_snpt_tg() 138 if (ipv6_addr_cmp(&bounced_pfx, &npt->src_pfx.in6) == 0) in ip6t_dnpt_tg()
|
/net/netfilter/ |
D | xt_iprange.c | 73 m = iprange_ipv6_lt(&iph->saddr, &info->src_min.in6); in iprange_mt6() 74 m |= iprange_ipv6_lt(&info->src_max.in6, &iph->saddr); in iprange_mt6() 80 &info->src_min.in6, in iprange_mt6() 81 &info->src_max.in6); in iprange_mt6() 86 m = iprange_ipv6_lt(&iph->daddr, &info->dst_min.in6); in iprange_mt6() 87 m |= iprange_ipv6_lt(&info->dst_max.in6, &iph->daddr); in iprange_mt6() 93 &info->dst_min.in6, in iprange_mt6() 94 &info->dst_max.in6); in iprange_mt6()
|
D | xt_ipvs.c | 41 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in ipvs_mt_addrcmp() 42 &uaddr->in6) == 0; in ipvs_mt_addrcmp()
|
D | xt_policy.c | 29 return ipv6_masked_addr_cmp(&a1->in6, &m->in6, &a2->in6) == 0; in xt_addr_cmp()
|
D | nf_nat_redirect.c | 110 newdst.in6 = loopback_addr; in nf_nat_redirect_ipv6() 125 newdst.in6 = ifa->addr; in nf_nat_redirect_ipv6()
|
D | xt_conntrack.c | 33 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp() 34 &uaddr->in6) == 0; in conntrack_addrcmp()
|
D | nf_nat_masquerade.c | 263 newrange.min_addr.in6 = src; in nf_nat_masquerade_ipv6() 264 newrange.max_addr.in6 = src; in nf_nat_masquerade_ipv6() 293 addr.in6 = ifa->addr; in masq_inet6_event()
|
D | xt_NETMAP.c | 35 new_addr.in6 = ipv6_hdr(skb)->daddr; in netmap_tg6() 37 new_addr.in6 = ipv6_hdr(skb)->saddr; in netmap_tg6()
|
D | xt_recent.c | 264 memcpy(&addr.in6, &iph->daddr, sizeof(addr.in6)); in recent_mt() 266 memcpy(&addr.in6, &iph->saddr, sizeof(addr.in6)); in recent_mt() 532 &e->addr.in6, e->ttl, e->stamps[i], e->index); in recent_seq_show()
|
D | xt_TPROXY.c | 133 laddr = nf_tproxy_laddr6(skb, &tgi->laddr.in6, &iph->daddr); in tproxy_tg6_v1() 142 &tgi->laddr.in6, in tproxy_tg6_v1()
|
/net/netfilter/ipset/ |
D | ip_set_hash_netnet.c | 299 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netnet6_data_equal() 300 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netnet6_data_equal() 347 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip[0].in6) || in hash_netnet6_data_list() 348 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip[1].in6) || in hash_netnet6_data_list() 396 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netnet6_kadt() 397 ip6addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1].in6); in hash_netnet6_kadt() 403 if (e.cidr[0] == HOST_MASK && ipv6_addr_any(&e.ip[0].in6)) in hash_netnet6_kadt() 458 if (e.cidr[0] == HOST_MASK && ipv6_addr_any(&e.ip[0].in6)) in hash_netnet6_uadt()
|
D | ip_set_hash_ipportip.c | 223 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportip6_data_equal() 224 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportip6_data_equal() 233 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipportip6_data_list() 234 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip2.in6) || in hash_ipportip6_data_list() 272 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportip6_kadt() 273 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2.in6); in hash_ipportip6_kadt()
|
D | ip_set_hash_ip.c | 187 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6); in hash_ip6_data_equal() 193 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &e->ip.in6)) in hash_ip6_data_list() 225 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ip6_kadt() 227 if (ipv6_addr_any(&e.ip.in6)) in hash_ip6_kadt() 266 if (ipv6_addr_any(&e.ip.in6)) in hash_ip6_uadt()
|
D | ip_set_hash_ipportnet.c | 323 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportnet6_data_equal() 324 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportnet6_data_equal() 361 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipportnet6_data_list() 362 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip2.in6) || in hash_ipportnet6_data_list() 409 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportnet6_kadt() 410 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2.in6); in hash_ipportnet6_kadt()
|
D | ip_set_hash_ipport.c | 226 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipport6_data_equal() 235 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipport6_data_list() 274 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipport6_kadt() 276 if (ipv6_addr_any(&e.ip.in6)) in hash_ipport6_kadt() 319 if (ipv6_addr_any(&e.ip.in6)) in hash_ipport6_uadt()
|
D | ip_set_hash_netportnet.c | 357 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netportnet6_data_equal() 358 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netportnet6_data_equal() 408 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip[0].in6) || in hash_netportnet6_data_list() 409 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip[1].in6) || in hash_netportnet6_data_list() 464 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netportnet6_kadt() 465 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1].in6); in hash_netportnet6_kadt()
|
D | ip_set_hash_ipmac.c | 162 return ipv6_addr_equal(&e1->ip.in6, &e2->ip.in6) && in hash_ipmac6_data_equal() 169 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &e->ip.in6) || in hash_ipmac6_data_list() 220 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipmac6_kadt()
|
D | ip_set_hash_ipmark.c | 183 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipmark6_data_equal() 191 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipmark6_data_list() 227 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipmark6_kadt()
|
D | ip_set_hash_net.c | 227 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_net6_data_equal() 261 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_net6_data_list() 303 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_net6_kadt()
|
D | ip_set_hash_netport.c | 283 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netport6_data_equal() 320 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_netport6_data_list() 367 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netport6_kadt()
|
D | ip_set_hash_netiface.c | 307 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netiface6_data_equal() 350 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_netiface6_data_list() 393 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netiface6_kadt()
|
/net/core/ |
D | netpoll.c | 438 udph->check = csum_ipv6_magic(&np->local_ip.in6, in netpoll_send_udp() 439 &np->remote_ip.in6, in netpoll_send_udp() 458 ip6h->saddr = np->local_ip.in6; in netpoll_send_udp() 459 ip6h->daddr = np->remote_ip.in6; in netpoll_send_udp() 508 np_info(np, "local IPv6 address %pI6c\n", &np->local_ip.in6); in netpoll_print_options() 514 np_info(np, "remote IPv6 address %pI6c\n", &np->remote_ip.in6); in netpoll_print_options() 530 if (in6_pton(str, -1, addr->in6.s6_addr, -1, &end) > 0) { in netpoll_parse_ip_addr() 757 !!(ipv6_addr_type(&np->remote_ip.in6) & IPV6_ADDR_LINKLOCAL)) in netpoll_setup() 759 np->local_ip.in6 = ifp->addr; in netpoll_setup() 770 np_info(np, "local IPv6 %pI6c\n", &np->local_ip.in6); in netpoll_setup()
|
/net/netfilter/ipvs/ |
D | ip_vs_xmit.c | 495 dst = __ip_vs_route_output_v6(net, &dest->addr.in6, in __ip_vs_get_out_rt_v6() 496 &dest_dst->dst_saddr.in6, in __ip_vs_get_out_rt_v6() 509 &dest->addr.in6, &dest_dst->dst_saddr.in6, in __ip_vs_get_out_rt_v6() 513 *ret_saddr = dest_dst->dst_saddr.in6; in __ip_vs_get_out_rt_v6() 858 &cp->daddr.in6, in ip_vs_nat_xmit_v6() 886 ipv6_addr_type(&cp->daddr.in6) & IPV6_ADDR_LOOPBACK) { in ip_vs_nat_xmit_v6() 903 ipv6_hdr(skb)->daddr = cp->daddr.in6; in ip_vs_nat_xmit_v6() 1281 &cp->daddr.in6, in ip_vs_tunnel_xmit_v6() 1365 udp6_set_csum(!check, skb, &saddr, &cp->daddr.in6, skb->len); in ip_vs_tunnel_xmit_v6() 1382 iph->daddr = cp->daddr.in6; in ip_vs_tunnel_xmit_v6() [all …]
|
D | ip_vs_proto_udp.c | 196 udph->check = csum_ipv6_magic(&cp->vaddr.in6, in udp_snat_handler() 197 &cp->caddr.in6, in udp_snat_handler() 280 udph->check = csum_ipv6_magic(&cp->caddr.in6, in udp_dnat_handler() 281 &cp->daddr.in6, in udp_dnat_handler()
|
D | ip_vs_core.c | 280 ipv6_addr_prefix(&snet.in6, &src_addr->in6, in ip_vs_sched_persist() 575 return ipv6_addr_type(&addr->in6) & IPV6_ADDR_UNICAST; in ip_vs_addr_is_unicast() 813 iph->saddr = cp->vaddr.in6; in ip_vs_nat_icmp_v6() 814 ciph->daddr = cp->vaddr.in6; in ip_vs_nat_icmp_v6() 816 iph->daddr = cp->daddr.in6; in ip_vs_nat_icmp_v6() 817 ciph->saddr = cp->daddr.in6; in ip_vs_nat_icmp_v6() 1041 snet.in6 = ciph.saddr.in6; in ip_vs_out_icmp_v6() 1159 ipv6_addr_prefix(&snet.in6, &caddr->in6, in ip_vs_new_conn_out() 1279 ipv6_hdr(skb)->saddr = cp->vaddr.in6; in handle_response()
|