Improve testBasicWorkingGetAddrQuery by checking the specific IPv4/v6 address.

Parse the entire RTM_NEWADDR message instead of only parsing the nlmsg
header and Ifaddr header. Besides, that would be better to know which IP
address will be returned from kernel via netlink message, that's IPv4
and IPv6 loopback addresses.

Test: atest NetworkStaticLibTests
Change-Id: I3a01137db4a7774fa30ebdec5a1711697991b9fe
2 files changed
tree: 4ab53324c2b2bb0c9dcbe66c91974330d5236679
  1. staticlibs/