Home
last modified time | relevance | path

Searched refs:in6 (Results 1 – 25 of 56) 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()
Dnf_nat_masquerade.c258 newrange.min_addr.in6 = src; in nf_nat_masquerade_ipv6()
259 newrange.max_addr.in6 = src; in nf_nat_masquerade_ipv6()
288 addr.in6 = ifa->addr; in masq_inet6_event()
Dxt_conntrack.c33 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in conntrack_addrcmp()
34 &uaddr->in6) == 0; in conntrack_addrcmp()
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()
Dnf_nat_core.c98 fl6->daddr = t->dst.u3.in6; in nf_nat_ipv6_decode_session()
110 fl6->saddr = t->src.u3.in6; in nf_nat_ipv6_decode_session()
227 return ipv6_addr_cmp(&t->src.u3.in6, &range->min_addr.in6) >= 0 && in nf_nat_inet_in_range()
228 ipv6_addr_cmp(&t->src.u3.in6, &range->max_addr.in6) <= 0; in nf_nat_inet_in_range()
/net/netfilter/ipset/
Dip_set_hash_ipportip.c222 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportip6_data_equal()
223 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportip6_data_equal()
232 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipportip6_data_list()
233 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip2.in6) || in hash_ipportip6_data_list()
271 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportip6_kadt()
272 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2.in6); in hash_ipportip6_kadt()
Dip_set_hash_ip.c184 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6); in hash_ip6_data_equal()
196 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &e->ip.in6)) in hash_ip6_data_list()
228 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ip6_kadt()
230 if (ipv6_addr_any(&e.ip.in6)) in hash_ip6_kadt()
269 if (ipv6_addr_any(&e.ip.in6)) in hash_ip6_uadt()
Dip_set_hash_netnet.c295 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netnet6_data_equal()
296 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netnet6_data_equal()
343 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip[0].in6) || in hash_netnet6_data_list()
344 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip[1].in6) || in hash_netnet6_data_list()
392 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netnet6_kadt()
393 ip6addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1].in6); in hash_netnet6_kadt()
Dip_set_hash_ipportnet.c322 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportnet6_data_equal()
323 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportnet6_data_equal()
360 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipportnet6_data_list()
361 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip2.in6) || in hash_ipportnet6_data_list()
408 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportnet6_kadt()
409 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2.in6); in hash_ipportnet6_kadt()
Dip_set_hash_netportnet.c356 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netportnet6_data_equal()
357 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netportnet6_data_equal()
407 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip[0].in6) || in hash_netportnet6_data_list()
408 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip[1].in6) || in hash_netportnet6_data_list()
463 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netportnet6_kadt()
464 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1].in6); in hash_netportnet6_kadt()
Dip_set_hash_ipmark.c182 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipmark6_data_equal()
190 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipmark6_data_list()
226 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipmark6_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_net.c226 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_net6_data_equal()
260 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_net6_data_list()
302 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_net6_kadt()
Dip_set_hash_ipport.c214 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipport6_data_equal()
223 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipport6_data_list()
261 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipport6_kadt()
Dip_set_hash_netport.c282 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netport6_data_equal()
319 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_netport6_data_list()
366 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netport6_kadt()
Dip_set_hash_netiface.c306 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netiface6_data_equal()
349 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_netiface6_data_list()
392 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netiface6_kadt()
/net/core/
Dnetpoll.c437 udph->check = csum_ipv6_magic(&np->local_ip.in6, in netpoll_send_udp()
438 &np->remote_ip.in6, in netpoll_send_udp()
457 ip6h->saddr = np->local_ip.in6; in netpoll_send_udp()
458 ip6h->daddr = np->remote_ip.in6; in netpoll_send_udp()
507 np_info(np, "local IPv6 address %pI6c\n", &np->local_ip.in6); in netpoll_print_options()
513 np_info(np, "remote IPv6 address %pI6c\n", &np->remote_ip.in6); in netpoll_print_options()
529 if (in6_pton(str, -1, addr->in6.s6_addr, -1, &end) > 0) { in netpoll_parse_ip_addr()
779 !!(ipv6_addr_type(&np->remote_ip.in6) & IPV6_ADDR_LINKLOCAL)) in netpoll_setup()
781 np->local_ip.in6 = ifp->addr; in netpoll_setup()
792 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()
872 &cp->daddr.in6, in ip_vs_nat_xmit_v6()
900 ipv6_addr_type(&cp->daddr.in6) & IPV6_ADDR_LOOPBACK) { in ip_vs_nat_xmit_v6()
917 ipv6_hdr(skb)->daddr = cp->daddr.in6; in ip_vs_nat_xmit_v6()
1305 &cp->daddr.in6, in ip_vs_tunnel_xmit_v6()
1389 udp6_set_csum(!check, skb, &saddr, &cp->daddr.in6, skb->len); in ip_vs_tunnel_xmit_v6()
1406 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.c292 ipv6_addr_prefix(&snet.in6, &src_addr->in6, in ip_vs_sched_persist()
587 return ipv6_addr_type(&addr->in6) & IPV6_ADDR_UNICAST; in ip_vs_addr_is_unicast()
825 iph->saddr = cp->vaddr.in6; in ip_vs_nat_icmp_v6()
826 ciph->daddr = cp->vaddr.in6; in ip_vs_nat_icmp_v6()
828 iph->daddr = cp->daddr.in6; in ip_vs_nat_icmp_v6()
829 ciph->saddr = cp->daddr.in6; in ip_vs_nat_icmp_v6()
1053 snet.in6 = ciph.saddr.in6; in ip_vs_out_icmp_v6()
1172 ipv6_addr_prefix(&snet.in6, &caddr->in6, in ip_vs_new_conn_out()
1293 ipv6_hdr(skb)->saddr = cp->vaddr.in6; in handle_response()

123