Skip to content
Snippets Groups Projects
Commit a81ca9e6 authored by Avi Kivity's avatar Avi Kivity Committed by Pekka Enberg
Browse files

net: add comparison operator for in_addr

parent 5f36ebb7
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,11 @@ inline in_addr hton(in_addr a)
return { htonl(a.s_addr) };
}
inline bool operator==(in_addr a, in_addr b)
{
return a.s_addr == b.s_addr;
}
#endif
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment