NetworkManager/src/dhcp
Thomas Haller cd0863a339 all: use _nm_utils_inet4_ntop() instead of nm_utils_inet4_ntop()
and _nm_utils_inet6_ntop() instead of nm_utils_inet6_ntop().

nm_utils_inet4_ntop()/nm_utils_inet6_ntop() are public API of libnm.
For one, that means they are only available in code that links with
libnm/libnm-core. But such basic helpers should be available everywhere.

Also, they accept NULL as destination buffers. We keep that behavior
for potential libnm users, but internally we never want to use the
static buffers. This patch needs to take care that there are no callers
of _nm_utils_inet[46]_ntop() that pass NULL buffers.

Also, _nm_utils_inet[46]_ntop() are inline functions and the compiler
can get rid of them.

We should consistently use the same variant of the helper. The only
downside is that the "good" name is already taken. The leading
underscore is rather ugly and inconsistent.

Also, with our internal variants we can use "static array indices in
function parameter declarations" next. Thereby the compiler helps
to ensure that the provided buffers are of the right size.
2020-01-28 11:17:41 +01:00
..
tests dhcp: test parsing of domain-search option 2019-12-23 16:19:35 +01:00
meson.build meson: Rename the compiler flags variable 2019-10-01 09:49:33 +02:00
nm-dhcp-client-logging.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dhcp-client.c dhcp: support FQDN flags in the dhclient backend 2019-11-28 17:56:35 +01:00
nm-dhcp-client.h dhcp: support FQDN flags in the dhclient backend 2019-11-28 17:56:35 +01:00
nm-dhcp-dhclient-utils.c dhcp: support FQDN flags in the dhclient backend 2019-11-28 17:56:35 +01:00
nm-dhcp-dhclient-utils.h dhcp: support FQDN flags in the dhclient backend 2019-11-28 17:56:35 +01:00
nm-dhcp-dhclient.c dhcp: support FQDN flags in the dhclient backend 2019-11-28 17:56:35 +01:00
nm-dhcp-dhcpcanon.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dhcp-dhcpcd.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dhcp-helper-api.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dhcp-helper.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dhcp-listener.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dhcp-listener.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dhcp-manager.c dhcp: support FQDN flags in the dhclient backend 2019-11-28 17:56:35 +01:00
nm-dhcp-manager.h dhcp: support FQDN flags in the dhclient backend 2019-11-28 17:56:35 +01:00
nm-dhcp-nettools.c all: use _nm_utils_inet4_ntop() instead of nm_utils_inet4_ntop() 2020-01-28 11:17:41 +01:00
nm-dhcp-options.c dhcp: don't add server-id option to the parameter request list 2020-01-25 11:37:44 +01:00
nm-dhcp-options.h systemd: add siaddr to lease options 2019-11-18 13:33:03 +01:00
nm-dhcp-systemd.c all: use _nm_utils_inet4_ntop() instead of nm_utils_inet4_ntop() 2020-01-28 11:17:41 +01:00
nm-dhcp-utils.c all: use _nm_utils_inet4_ntop() instead of nm_utils_inet4_ntop() 2020-01-28 11:17:41 +01:00
nm-dhcp-utils.h dhcp: test parsing of domain-search option 2019-12-23 16:19:35 +01:00