[PATCH] core: fix route metric set to -1 on DHCP renewal

2018-09-21 Thread Frederic Danis
The first DHCP renew after setting back Ethernet metric to default (-1) applies a metric of 4294967295 (uint16 -1) instead of the default metric. The route becomes: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 0.0.0.0

[PATCH] core: fix route metric set to -1 on DHCP renewal

2018-09-20 Thread Frederic Danis
The first DHCP renew after setting back Ethernet metric to default (-1) applies a metric of 4294967295 (uint16 -1) instead of the default metric. The route becomes: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 0.0.0.0

[PATCH] ppp-manager: fix pppd not exiting correctly on modem hangup

2018-09-11 Thread Frederic Danis
When unplugging an USB 3G modem device, pppd does not exit correctly and we have the following traces: Sep 10 07:58:24.616465 ModemManager[1158]: (tty/ttyUSB0): released by device '/sys/devices/pci:00/:00:1c.0/:01:00.0/usb4/4-1' Sep 10 07:58:24.620314 pppd[2292]: Modem hangup Sep

[PATCH] ppp-manager: fix pppd not exiting correctly on modem hangup

2018-09-11 Thread Frederic Danis
When unplugging an USB 3G modem device, pppd does not exit correctly and we have the following traces: Sep 10 07:58:24.616465 ModemManager[1158]: (tty/ttyUSB0): released by device '/sys/devices/pci:00/:00:1c.0/:01:00.0/usb4/4-1' Sep 10 07:58:24.620314 pppd[2292]: Modem hangup Sep

[PATCH] devices/wwan: Stop PPP manager in deactivate_cleanup()

2018-05-17 Thread Frederic Danis
When ModemManager exits, pppd is not killed due to nm_exported_object not unexported (ppp_manager refcount = 2). Call to nm_ppp_manager_stop_sync() allows to correctly clean ppp_manager before calling g_clear_object(), as this is done in nm-device-ethernet.c and nm-device-adsl.c.