android_system_core/libnetutils
Lorenzo Colitti c3d38969ca Return a valid error code when adding an invalid IP address.
Currently, passing an invalid IP address to interfaceAddAddress
and friends results in an invalid error message:

    12-02 13:00:42.675 interfaceAddAddress("testtap2355", "2001:db8::1/64", 64) -> ServiceSpecificException(-8, "InterfaceController error: Unknown error -8") <1.63ms>

This is due to confusion between getaddrinfo error codes and
errno values.

Test: new unit test added to IpClientIntegrationTest
Change-Id: Ifdaa4281a9bcf3998e3216472c5c1df0f5285214
2019-12-02 13:42:20 +09:00
..
include/netutils Move checksum code from clatd to libnetutils. 2019-01-30 12:33:29 +09:00
Android.bp Move checksum code from clatd to libnetutils. 2019-01-30 12:33:29 +09:00
checksum.c Move checksum code from clatd to libnetutils. 2019-01-30 12:33:29 +09:00
dhcpclient.c liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
dhcpmsg.c
dhcpmsg.h
dhcptool.c libnetutils: Rename dhcptool to dhcpdbg 2017-05-17 10:47:28 -07:00
ifc_utils.c Return a valid error code when adding an invalid IP address. 2019-12-02 13:42:20 +09:00
NOTICE
OWNERS Refactor OWNERS files for Android Core Networking 2019-02-12 13:25:13 +08:00
packet.c libnetutil: Check dhcp respose packet length am: 61f25d4a36 am: cee6d38c55 am: 29d054046f am: c29049f4f8 am: 3de04e9840 am: 19702dc499 am: 8191e9ba87 am: 804323c195 am: 4f5f00d879 am: 3a1ff1ad71 2017-11-02 03:23:59 +00:00
packet.h