Home
last modified time | relevance | path

Searched refs:ip2 (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/net/netfilter/ipset/
Dip_set_hash_ipportnet.c53 __be32 ip2; member
64 const struct hash_ipportnet4_elem *ip2, in hash_ipportnet4_data_equal() argument
67 return ip1->ip == ip2->ip && in hash_ipportnet4_data_equal()
68 ip1->ip2 == ip2->ip2 && in hash_ipportnet4_data_equal()
69 ip1->cidr == ip2->cidr && in hash_ipportnet4_data_equal()
70 ip1->port == ip2->port && in hash_ipportnet4_data_equal()
71 ip1->proto == ip2->proto; in hash_ipportnet4_data_equal()
95 elem->ip2 &= ip_set_netmask(cidr); in hash_ipportnet4_data_netmask()
106 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip2) || in hash_ipportnet4_data_list()
125 next->ip2 = d->ip2; in hash_ipportnet4_data_next()
[all …]
Dip_set_hash_ipportip.c43 __be32 ip2; member
51 const struct hash_ipportip4_elem *ip2, in hash_ipportip4_data_equal() argument
54 return ip1->ip == ip2->ip && in hash_ipportip4_data_equal()
55 ip1->ip2 == ip2->ip2 && in hash_ipportip4_data_equal()
56 ip1->port == ip2->port && in hash_ipportip4_data_equal()
57 ip1->proto == ip2->proto; in hash_ipportip4_data_equal()
65 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip2) || in hash_ipportip4_data_list()
102 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportip4_kadt()
134 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP2], &e.ip2); in hash_ipportip4_uadt()
205 union nf_inet_addr ip2; member
[all …]
Dip_set_hash_netportnet.c61 const struct hash_netportnet4_elem *ip2, in hash_netportnet4_data_equal() argument
64 return ip1->ipcmp == ip2->ipcmp && in hash_netportnet4_data_equal()
65 ip1->ccmp == ip2->ccmp && in hash_netportnet4_data_equal()
66 ip1->port == ip2->port && in hash_netportnet4_data_equal()
67 ip1->proto == ip2->proto; in hash_netportnet4_data_equal()
184 u32 ip2_from = 0, ip2_to = 0, ip2; in hash_netportnet4_uadt() local
290 ip2 = ntohl(h->next.ip[1]); in hash_netportnet4_uadt()
293 ip2 = ip2_from; in hash_netportnet4_uadt()
302 e.ip[1] = htonl(ip2); in hash_netportnet4_uadt()
303 ip2 = ip_set_range_to_cidr(ip2, ip2_to, in hash_netportnet4_uadt()
[all …]
Dip_set_hash_netnet.c57 const struct hash_netnet4_elem *ip2, in hash_netnet4_data_equal() argument
60 return ip1->ipcmp == ip2->ipcmp && in hash_netnet4_data_equal()
61 ip1->ccmp == ip2->ccmp; in hash_netnet4_data_equal()
170 u32 ip2 = 0, ip2_from = 0, ip2_to = 0; in hash_netnet4_uadt() local
249 ip2 = ntohl(h->next.ip[1]); in hash_netnet4_uadt()
251 ip2 = ip2_from; in hash_netnet4_uadt()
258 e.ip[1] = htonl(ip2); in hash_netnet4_uadt()
259 ip2 = ip_set_range_to_cidr(ip2, ip2_to, &e.cidr[1]); in hash_netnet4_uadt()
265 } while (ip2++ < ip2_to); in hash_netnet4_uadt()
266 ip2 = ip2_from; in hash_netnet4_uadt()
[all …]
Dip_set_hash_netiface.c67 const struct hash_netiface4_elem *ip2, in hash_netiface4_data_equal() argument
70 return ip1->ip == ip2->ip && in hash_netiface4_data_equal()
71 ip1->cidr == ip2->cidr && in hash_netiface4_data_equal()
73 ip1->physdev == ip2->physdev && in hash_netiface4_data_equal()
74 strcmp(ip1->iface, ip2->iface) == 0; in hash_netiface4_data_equal()
290 const struct hash_netiface6_elem *ip2, in hash_netiface6_data_equal() argument
293 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netiface6_data_equal()
294 ip1->cidr == ip2->cidr && in hash_netiface6_data_equal()
296 ip1->physdev == ip2->physdev && in hash_netiface6_data_equal()
297 strcmp(ip1->iface, ip2->iface) == 0; in hash_netiface6_data_equal()
Dip_set_hash_ipport.c52 const struct hash_ipport4_elem *ip2, in hash_ipport4_data_equal() argument
55 return ip1->ip == ip2->ip && in hash_ipport4_data_equal()
56 ip1->port == ip2->port && in hash_ipport4_data_equal()
57 ip1->proto == ip2->proto; in hash_ipport4_data_equal()
207 const struct hash_ipport6_elem *ip2, in hash_ipport6_data_equal() argument
210 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipport6_data_equal()
211 ip1->port == ip2->port && in hash_ipport6_data_equal()
212 ip1->proto == ip2->proto; in hash_ipport6_data_equal()
Dip_set_hash_netport.c62 const struct hash_netport4_elem *ip2, in hash_netport4_data_equal() argument
65 return ip1->ip == ip2->ip && in hash_netport4_data_equal()
66 ip1->port == ip2->port && in hash_netport4_data_equal()
67 ip1->proto == ip2->proto && in hash_netport4_data_equal()
68 ip1->cidr == ip2->cidr; in hash_netport4_data_equal()
275 const struct hash_netport6_elem *ip2, in hash_netport6_data_equal() argument
278 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netport6_data_equal()
279 ip1->port == ip2->port && in hash_netport6_data_equal()
280 ip1->proto == ip2->proto && in hash_netport6_data_equal()
281 ip1->cidr == ip2->cidr; in hash_netport6_data_equal()
Dip_set_hash_ipmark.c47 const struct hash_ipmark4_elem *ip2, in hash_ipmark4_data_equal() argument
50 return ip1->ip == ip2->ip && in hash_ipmark4_data_equal()
51 ip1->mark == ip2->mark; in hash_ipmark4_data_equal()
170 const struct hash_ipmark6_elem *ip2, in hash_ipmark6_data_equal() argument
173 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipmark6_data_equal()
174 ip1->mark == ip2->mark; in hash_ipmark6_data_equal()
Dip_set_hash_net.c52 const struct hash_net4_elem *ip2, in hash_net4_data_equal() argument
55 return ip1->ip == ip2->ip && in hash_net4_data_equal()
56 ip1->cidr == ip2->cidr; in hash_net4_data_equal()
217 const struct hash_net6_elem *ip2, in hash_net6_data_equal() argument
220 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_net6_data_equal()
221 ip1->cidr == ip2->cidr; in hash_net6_data_equal()
Dip_set_hash_ip.c176 const struct hash_ip6_elem *ip2, in hash_ip6_data_equal() argument
179 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6); in hash_ip6_data_equal()
/Linux-v5.4/tools/testing/selftests/net/forwarding/
Dmirror_lib.sh51 local ip2=$1; shift
54 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
55 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
76 local ip2=$1; shift
78 quick_test_span_dir_ips "$dev" "$direction" "$ip1" "$ip2"
81 mirror_test v$h1 $ip1 $ip2 $dev 100 10
85 mirror_test v$h2 $ip2 $ip1 $dev 100 10
106 local ip2=$1; shift
112 mirror_test v$h1 $ip1 $ip2 $dev 100 $expect
113 mirror_test v$h2 $ip2 $ip1 $dev 100 $expect
Dmirror_gre_lib.sh34 local ip2=$1; shift
40 "$backward_type" "$ip1" "$ip2"
55 local ip2=$1; shift
62 "$backward_type" "$ip1" "$ip2"
67 mirror_test v$h1 $ip1 $ip2 $h3 77 10
106 local ip2=$1; shift
112 quick_test_span_gre_dir_ips $tundev ingress $ip1 $ip2
116 fail_test_span_gre_dir_ips $tundev ingress $ip1 $ip2
120 quick_test_span_gre_dir_ips $tundev ingress $ip1 $ip2
Dvxlan_symmetric.sh439 local ip2=$1; shift
449 ip neigh add $ip2 lladdr $mac2 nud noarp dev vlan20 \
Dvxlan_asymmetric.sh396 local ip2=$1; shift
406 ip neigh add $ip2 lladdr $mac2 nud noarp dev vlan20 \
/Linux-v5.4/fs/xfs/
Dxfs_inode.c2984 struct xfs_inode *ip2, /* in: inode of new entry */ in xfs_sort_for_rename() argument
3005 if (ip2) in xfs_sort_for_rename()
3006 i_tab[i++] = ip2; in xfs_sort_for_rename()
3053 struct xfs_inode *ip2, in xfs_cross_rename() argument
3062 error = xfs_dir_replace(tp, dp1, name1, ip2->i_ino, spaceres); in xfs_cross_rename()
3079 if (S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_cross_rename()
3080 error = xfs_dir_replace(tp, ip2, &xfs_name_dotdot, in xfs_cross_rename()
3110 if (!S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_cross_rename()
3133 xfs_trans_ichgtime(tp, ip2, ip2_flags); in xfs_cross_rename()
3134 xfs_trans_log_inode(tp, ip2, XFS_ILOG_CORE); in xfs_cross_rename()