Lines Matching refs:rhs
309 bool operator==(const stats_line& lhs, const stats_line& rhs) { in operator ==() argument
310 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag) && (lhs.set == rhs.set) && in operator ==()
311 !strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface))); in operator ==()
315 bool operator<(const stats_line& lhs, const stats_line& rhs) { in operator <() argument
316 int ret = strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface)); in operator <()
318 if (lhs.uid < rhs.uid) return true; in operator <()
319 if (lhs.uid > rhs.uid) return false; in operator <()
320 if (lhs.tag < rhs.tag) return true; in operator <()
321 if (lhs.tag > rhs.tag) return false; in operator <()
322 if (lhs.set < rhs.set) return true; in operator <()
323 if (lhs.set > rhs.set) return false; in operator <()
327 stats_line& stats_line::operator=(const stats_line& rhs) { in operator =() argument
328 if (this == &rhs) return *this; in operator =()
330 strlcpy(iface, rhs.iface, sizeof(iface)); in operator =()
331 uid = rhs.uid; in operator =()
332 set = rhs.set; in operator =()
333 tag = rhs.tag; in operator =()
334 rxPackets = rhs.rxPackets; in operator =()
335 txPackets = rhs.txPackets; in operator =()
336 rxBytes = rhs.rxBytes; in operator =()
337 txBytes = rhs.txBytes; in operator =()
341 stats_line& stats_line::operator+=(const stats_line& rhs) { in operator +=() argument
342 rxPackets += rhs.rxPackets; in operator +=()
343 txPackets += rhs.txPackets; in operator +=()
344 rxBytes += rhs.rxBytes; in operator +=()
345 txBytes += rhs.txBytes; in operator +=()