could be red herring, but guess that error could really make nm not do
proper default route replace...

in nm-system.c:1043 you see the code that will give up trying to replace
the gateway in case the add_ip4_route_to_gateway call fails...


       /* Try adding a direct route to the gateway first */
        gw_route = add_ip4_route_to_gateway (parent_ifindex, ext_gw, 
parent_mss);
        if (!gw_route)
                goto out;

        /* Try adding the original route again */
        err = replace_default_ip4_route (ifindex, int_gw, mss);
        if (err != 0) {
                nm_netlink_route_delete (gw_route);
                nm_log_err (LOGD_DEVICE | LOGD_VPN | LOGD_IP4,
                            "(%s): failed to set IPv4 default route (pass #2): 
%d",
                            iface, err);
        } else
                success = TRUE;

out:
        if (gw_route)
                rtnl_route_put (gw_route);
        g_free (iface);

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1307981

Title:
  [touch] randomly messed up routing with recent trusty images

Status in “network-manager” package in Ubuntu:
  Confirmed

Bug description:
  I have no clue when exactly it started (probably before image 290),
  but since a while i experience random issues where the browser
  suddenly doesnt find websites anymore ... digging deeper i can see
  that the routing table is completely messed up having two default
  routes:

  root@ubuntu-phablet:~# route -n 
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  0.0.0.0         37.85.159.174   0.0.0.0         UG    0      0        0 
rmnet_usb1
  0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0 wlan0
  37.85.159.172   0.0.0.0         255.255.255.252 U     0      0        0 
rmnet_usb1
  192.168.2.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0

  i did not roam or switch networks, this phone was constantly on wlan in the 
same room.
  afer a reboot the routing is normal:

  root@ubuntu-phablet:~# route -n
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0 wlan0
  37.84.75.140    0.0.0.0         255.255.255.252 U     13     0        0 
rmnet_usb0
  192.168.2.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1307981/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to