1. 23 Dec, 2015 2 commits
  2. 22 Dec, 2015 1 commit
    • Beniamino Galvani's avatar
      device/vlan: fix failed assertion in parent_hwaddr_changed() · e1d06d7a
      Beniamino Galvani authored
      Parent MAC can be NULL if the interface has gone, fix the following
      failed assertion:
      
        [devices/nm-device-vlan.c:107] parent_hwaddr_changed(): (vlan1): parent hardware address changed
        nm_device_set_hw_addr: assertion 'addr != NULL' failed
      
      While at it, improve logging by printing the new MAC address.
      
      Fixes: e6d7fee5
      e1d06d7a
  3. 19 Dec, 2015 4 commits
  4. 18 Dec, 2015 6 commits
    • Thomas Haller's avatar
      libnm-util: allow unknown setting types in nm_connection_get_virtual_iface_name() · 8c27a370
      Thomas Haller authored
      Allow calling nm_connection_get_virtual_iface_name() on a non-verified
      connection by not asserting asserting against a valid base-setting.
      
      On nma-1-0 branch, nm-applet can crash with:
      
          #3  0x00007ffff2993a7a in g_assertion_message_expr (domain=0x7ffff51fad86 "libnm-util", file=0x7ffff51fb728 "nm-connection.c", line=320, func=0x7ffff51fc028 "_get_type_setting", expr=<optimized out>) at gtestutils.c:2444
          #4  0x00007ffff51ac52f in _get_type_setting (connection=0xa3c160 [NMRemoteConnection]) at nm-connection.c:320
          #5  0x00007ffff51ac341 in nm_connection_get_virtual_iface_name (connection=0xa3c160 [NMRemoteConnection]) at nm-connection.c:1436
          #6  0x0000000000415bdc in add_virtual_items (type=type@entry=0x43c11d "bridge", all_devices=all_devices@entry=0x7f6580, all_connections=all_connections@entry=0x9354a0, menu=menu@entry=0x922990 [GtkMenu], applet=applet@entry=0x6cc000 [NMApplet]) at applet.c:1640
          #7  0x00000000004176f6 in nma_menu_add_devices (menu=menu@entry=0x922990 [GtkMenu], applet=applet@entry=0x6cc000 [NMApplet]) at applet.c:1713
          #8  0x0000000000418315 in nma_menu_show_cb (menu=0x922990 [GtkMenu], applet=0x6cc000 [NMApplet]) at applet.c:1974
      
      where the connection type is "tun".
      
      Note that libnm accepts invalid connections and exposes them to the
      user (albeit issuing a warning). Later on there are many places where
      that can lead to further g_return*(), which is ugly indeed.
      At least, we should not assert against valid connections (because that
      crashes the user) and there is a well known fact that the base setting
      will be missing for tun settings. No need to even warn about that in
      nm_connection_get_virtual_iface_name() (we already got the warning
      during replace_settings).
      8c27a370
    • Lubomir Rintel's avatar
      d830841d
    • Lubomir Rintel's avatar
      manager: retry device creation for connection that would use a newly created device · d8e1590c
      Lubomir Rintel authored
      The VLANs (unrealized) can depend on the devices that are not around yet. We
      need to retry their creation when the potential parents appear.
      d8e1590c
    • Jiří Klimeš's avatar
      9ec9e4e7
    • Jiří Klimeš's avatar
    • Jiří Klimeš's avatar
  5. 17 Dec, 2015 27 commits