Lines Matching refs:a2
143 _cleanup_address_free_ Address *a1 = NULL, *a2 = NULL;
146 assert_se(address_new(&a2) >= 0);
150 assert_se(!address_equal(NULL, a2));
151 assert_se(address_equal(a1, a2));
154 assert_se(!address_equal(a1, a2));
156 a2->family = AF_INET;
157 assert_se(address_equal(a1, a2));
160 assert_se(!address_equal(a1, a2));
161 assert_se(inet_pton(AF_INET, "192.168.3.9", &a2->in_addr.in));
162 assert_se(address_equal(a1, a2));
164 assert_se(address_equal(a1, a2));
165 assert_se(inet_pton(AF_INET, "192.168.3.11", &a2->in_addr_peer.in));
166 assert_se(address_equal(a1, a2));
168 assert_se(!address_equal(a1, a2));
169 a2->prefixlen = 10;
170 assert_se(address_equal(a1, a2));
173 assert_se(!address_equal(a1, a2));
175 a2->family = AF_INET6;
177 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::2", &a2->in_addr.in6));
178 assert_se(address_equal(a1, a2));
180 a2->prefixlen = 8;
181 assert_se(address_equal(a1, a2));
183 assert_se(inet_pton(AF_INET6, "2001:4ca0:4f01::1", &a2->in_addr.in6));
184 assert_se(!address_equal(a1, a2));