diff options
Diffstat (limited to 'src/nm-iface-helper.c')
| -rw-r--r-- | src/nm-iface-helper.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/nm-iface-helper.c b/src/nm-iface-helper.c index bfb7af57..df70c71b 100644 --- a/src/nm-iface-helper.c +++ b/src/nm-iface-helper.c @@ -106,6 +106,7 @@ dhcp4_state_changed (NMDhcpClient *client, switch (state) { case NM_DHCP_STATE_BOUND: + case NM_DHCP_STATE_EXTENDED: g_assert (ip4_config); g_assert (nm_ip4_config_get_ifindex (ip4_config) == gl.ifindex); @@ -551,10 +552,14 @@ main (int argc, char *argv[]) stable_type = (global_opt.stable_id[0] - '0'); stable_id = &global_opt.stable_id[2]; } - ndisc = nm_lndp_ndisc_new (NM_PLATFORM_GET, gl.ifindex, global_opt.ifname, - stable_type, stable_id, + ndisc = nm_lndp_ndisc_new (NM_PLATFORM_GET, + gl.ifindex, + global_opt.ifname, + stable_type, + stable_id, global_opt.addr_gen_mode, NM_NDISC_NODE_TYPE_HOST, + NM_RA_TIMEOUT_DEFAULT, NULL); g_assert (ndisc); @@ -572,7 +577,7 @@ main (int argc, char *argv[]) G_CALLBACK (ndisc_config_changed), NULL); g_signal_connect (ndisc, - NM_NDISC_RA_TIMEOUT, + NM_NDISC_RA_TIMEOUT_SIGNAL, G_CALLBACK (ndisc_ra_timeout), NULL); nm_ndisc_start (ndisc); |