GNOME Bugzilla – Bug 701609
gnetworkmonitornetlink: handle default route via device
Last modified: 2013-08-01 15:54:18 UTC
If the default route is via a device rather than a particular IP address, then neither RTA_DST nor RTA_GATEWAY will be present in the RTM_NEWROUTE message, and so GNetworkMonitorNetlink would ignore it, and then think there was no default route. (This could happen with certain kinds of VPNs, if they were set to route all traffic through the VPN.) Fix this by recognizing routes that specify RTA_OIF ("output interface") instead of RTA_GATEWAY.
Created attachment 246031 [details] [review] gnetworkmonitornetlink: handle default route via device
Pavel, can you sanity-check this?
I've patched my glib with this patch and now gnetworkmonitor reports connected when I'm connected to the office vpn. Thanks.
Attachment 246031 [details] pushed as c08ef6c - gnetworkmonitornetlink: handle default route via device
*** Bug 704610 has been marked as a duplicate of this bug. ***
Hi, can this be backported to 2.36? so we can make gnome 3.8 a bit happier :)
Now backported.