Skip to content

Commit

Permalink
Resolve the review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman committed Oct 23, 2023
1 parent 87b1318 commit 88cabc9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions common/network/IPV6Address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ IPV6Address::IPV6Address(const uint8_t *address) {

bool IPV6Address::operator<(const IPV6Address &other) const {
// TODO(Peter): Deal with any network byte order conversion?
// Stored in network byte order, so convert to sort appropriately
return (memcmp(&m_address.s6_addr[0],
&other.m_address.s6_addr[0],
sizeof (struct in6_addr)) < 0);
}

bool IPV6Address::operator>(const IPV6Address &other) const {
// TODO(Peter): Deal with any network byte order conversion?
// Stored in network byte order, so convert to sort appropriately
return (memcmp(&m_address.s6_addr[0],
&other.m_address.s6_addr[0],
sizeof (struct in6_addr)) > 0);
Expand Down

0 comments on commit 88cabc9

Please sign in to comment.