Searched defs:a2 (Results 1 - 3 of 3) sorted by relevance

/systemd/src/network/
H A Dtest-network.c143 _cleanup_address_free_ Address *a1 = NULL, *a2 = NULL; local
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));
[all...]
H A Dnetworkd-address.c142 const Address *a1 = c1, *a2 = c2; local
144 if (a1->family < a2->family)
146 if (a1->family > a2->family)
152 if (a1->prefixlen < a2->prefixlen)
154 if (a1->prefixlen > a2->prefixlen)
168 if (a2->in_addr_peer.in.s_addr != 0)
169 b2 = be32toh(a2->in_addr_peer.in.s_addr) >> (32 - a1->prefixlen);
171 b2 = be32toh(a2->in_addr.in.s_addr) >> (32 - a1->prefixlen);
181 return memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family));
193 bool address_equal(Address *a1, Address *a2) { argument
[all...]
/systemd/src/udev/
H A Dudev-builtin-net_id.c448 unsigned int a1, a2, a3, a4, a5, a6; local
461 if (sscanf(s, "%x:%x:%x:%x:%x:%x", &a1, &a2, &a3, &a4, &a5, &a6) != 6)
465 if (a1 + a2 + a3 + a4 + a5 + a6 == 0)
469 names->mac[1] = a2;

Completed in 261 milliseconds