• Home
  • Raw
  • Download

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);
154 friend bool operator==(const IPAddress& a, const IPAddress& b) { return (a.mData == b.mData); }
155 friend bool operator!=(const IPAddress& a, const IPAddress& b) { return (a.mData != b.mData); }
156 friend bool operator<(const IPAddress& a, const IPAddress& b) { return (a.mData < b.mData); }
157 friend bool operator>(const IPAddress& a, const IPAddress& b) { return (b.mData < a.mData); }
158 friend bool operator<=(const IPAddress& a, const IPAddress& b) { return (a < b) || (a == b); }
159 friend bool operator>=(const IPAddress& a, const IPAddress& b) { return (b < a) || (a == b); }
217 friend bool operator==(const IPPrefix& a, const IPPrefix& b) { return (a.mData == b.mData); }
218 friend bool operator!=(const IPPrefix& a, const IPPrefix& b) { return (a.mData != b.mData); }
219 friend bool operator<(const IPPrefix& a, const IPPrefix& b) { return (a.mData < b.mData); }
220 friend bool operator>(const IPPrefix& a, const IPPrefix& b) { return (b.mData < a.mData); }
221 friend bool operator<=(const IPPrefix& a, const IPPrefix& b) { return (a < b) || (a == b); }
222 friend bool operator>=(const IPPrefix& a, const IPPrefix& b) { return (b < a) || (a == b); }
277 friend bool operator==(const IPSockAddr& a, const IPSockAddr& b) {
278 return (a.mData == b.mData);
280 friend bool operator!=(const IPSockAddr& a, const IPSockAddr& b) {
281 return (a.mData != b.mData);
283 friend bool operator<(const IPSockAddr& a, const IPSockAddr& b) { return (a.mData < b.mData); }
284 friend bool operator>(const IPSockAddr& a, const IPSockAddr& b) { return (b.mData < a.mData); }
285 friend bool operator<=(const IPSockAddr& a, const IPSockAddr& b) { return (a < b) || (a == b); }
286 friend bool operator>=(const IPSockAddr& a, const IPSockAddr& b) { return (b < a) || (a == b); }