Squashed 'src/n-dhcp4/' changes from f8fc48dc014d..b2a382ac4500

b2a382ac4500 test: use inet_pton() instead of inet_aton() in test tool
45df6a37a710 meson: no longer pass -Wl,--no-undefined explicitly
bb9bcdee5754 n-dhcp4-client: make n_dhcp4_client_set_log_level public

git-subtree-dir: src/n-dhcp4
git-subtree-split: b2a382ac4500dee1abfb7cd5acaa3678e47e9662
This commit is contained in:
Thomas Haller 2023-05-09 08:53:48 +02:00
parent 3d474037ad
commit bbfd1377b4
3 changed files with 2 additions and 2 deletions

View file

@ -26,6 +26,7 @@ global:
n_dhcp4_client_pop_event;
n_dhcp4_client_update_mtu;
n_dhcp4_client_probe;
n_dhcp4_client_set_log_level;
n_dhcp4_client_probe_free;
n_dhcp4_client_probe_get_userdata;

View file

@ -44,7 +44,6 @@ libndhcp4_shared = shared_library(
soversion: 0,
link_depends: libndhcp4_symfile,
link_args: [
'-Wl,--no-undefined',
'-Wl,--version-script=@0@'.format(libndhcp4_symfile)
],
)

View file

@ -597,7 +597,7 @@ static int parse_argv(int argc, char **argv) {
break;
case ARG_REQUESTED_IP:
r = inet_aton(optarg, &main_arg_requested_ip);
r = inet_pton(AF_INET, optarg, &main_arg_requested_ip);
if (r != 1) {
fprintf(stderr,
"%s: invalid requested IP -- '%s'\n",