Lines Matching refs:a
47 friend bool operator==(const compact_ipdata& a, const compact_ipdata& b) {
48 if ((a.family != b.family) || (a.cidrlen != b.cidrlen) || (a.port != b.port) ||
49 (a.scope_id != b.scope_id)) {
52 switch (a.family) {
58 const in_addr v4a = a.ip.v4;
63 const in6_addr v6a = a.ip.v6;
73 friend bool operator!=(const compact_ipdata& a, const compact_ipdata& b) { return !(a == b); }
77 friend bool operator<(const compact_ipdata& a, const compact_ipdata& b) {
78 if (a.family != b.family) return (a.family < b.family);
79 switch (a.family) {
81 const in_addr v4a = a.ip.v4;
87 const in6_addr v6a = a.ip.v6;
94 if (a.cidrlen != b.cidrlen) return (a.cidrlen < b.cidrlen);
95 if (a.port != b.port) return (a.port < b.port);
96 return (a.scope_id < b.scope_id);
164 friend bool operator==(const IPAddress& a, const IPAddress& b) { return (a.mData == b.mData); }
165 friend bool operator!=(const IPAddress& a, const IPAddress& b) { return (a.mData != b.mData); }
166 friend bool operator<(const IPAddress& a, const IPAddress& b) { return (a.mData < b.mData); }
167 friend bool operator>(const IPAddress& a, const IPAddress& b) { return (b.mData < a.mData); }
168 friend bool operator<=(const IPAddress& a, const IPAddress& b) { return (a < b) || (a == b); }
169 friend bool operator>=(const IPAddress& a, const IPAddress& b) { return (b < a) || (a == b); }
232 friend bool operator==(const IPPrefix& a, const IPPrefix& b) { return (a.mData == b.mData); }
233 friend bool operator!=(const IPPrefix& a, const IPPrefix& b) { return (a.mData != b.mData); }
234 friend bool operator<(const IPPrefix& a, const IPPrefix& b) { return (a.mData < b.mData); }
235 friend bool operator>(const IPPrefix& a, const IPPrefix& b) { return (b.mData < a.mData); }
236 friend bool operator<=(const IPPrefix& a, const IPPrefix& b) { return (a < b) || (a == b); }
237 friend bool operator>=(const IPPrefix& a, const IPPrefix& b) { return (b < a) || (a == b); }
309 friend bool operator==(const IPSockAddr& a, const IPSockAddr& b) {
310 return (a.mData == b.mData);
312 friend bool operator!=(const IPSockAddr& a, const IPSockAddr& b) {
313 return (a.mData != b.mData);
315 friend bool operator<(const IPSockAddr& a, const IPSockAddr& b) { return (a.mData < b.mData); }
316 friend bool operator>(const IPSockAddr& a, const IPSockAddr& b) { return (b.mData < a.mData); }
317 friend bool operator<=(const IPSockAddr& a, const IPSockAddr& b) { return (a < b) || (a == b); }
318 friend bool operator>=(const IPSockAddr& a, const IPSockAddr& b) { return (b < a) || (a == b); }