Home
last modified time | relevance | path

Searched refs:in6 (Results 1 – 25 of 57) sorted by relevance

123

/net/ipv6/netfilter/
Dip6t_NPT.c25 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/
Dxt_iprange.c73 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()
Dxt_ipvs.c41 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in ipvs_mt_addrcmp()
42 &uaddr->in6) == 0; in ipvs_mt_addrcmp()
Dxt_policy.c29 return ipv6_masked_addr_cmp(&a1->in6, &m->in6, &a2->in6) == 0; in xt_addr_cmp()
Dnf_nat_redirect.c110 newdst.in6 = loopback_addr; in nf_nat_redirect_ipv6()
125 newdst.in6 = ifa->addr; in nf_nat_redirect_ipv6()
Dxt_conntrack.c33 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp()
34 &uaddr->in6) == 0; in conntrack_addrcmp()
Dnf_nat_masquerade.c263 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()
Dxt_NETMAP.c35 new_addr.in6 = ipv6_hdr(skb)->daddr; in netmap_tg6()
37 new_addr.in6 = ipv6_hdr(skb)->saddr; in netmap_tg6()
Dxt_recent.c264 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()
Dxt_TPROXY.c133 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/
Dip_set_hash_netnet.c299 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()
Dip_set_hash_ipportip.c223 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()
Dip_set_hash_ip.c187 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()
Dip_set_hash_ipportnet.c323 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()
Dip_set_hash_ipport.c226 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()
Dip_set_hash_netportnet.c357 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()
Dip_set_hash_ipmac.c162 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()
Dip_set_hash_ipmark.c183 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()
Dip_set_hash_net.c227 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()
Dip_set_hash_netport.c283 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()
Dip_set_hash_netiface.c307 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/
Dnetpoll.c438 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/
Dip_vs_xmit.c495 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 …]
Dip_vs_proto_udp.c196 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()
Dip_vs_core.c280 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()

123