net: Add helper function to compare inetpeer addresses