Sorry for just getting around to this again. I've submitted a bug report
on bugzilla.gnome.org. I've also confirmed that biosdevname should not
rename wireless NICs and am making sure that there are sufficient checks
in biosdevname for that.

** Bug watch added: GNOME Bug Tracker #674765
   https://bugzilla.gnome.org/show_bug.cgi?id=674765

** Also affects: network-manager via
   https://bugzilla.gnome.org/show_bug.cgi?id=674765
   Importance: Unknown
       Status: Unknown

-- 
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/962587

Title:
  When using ifnet plugin and biosdevname is enabled, NetworkManager may
  treat wired interfaces as wireless interfaces

Status in NetworkManager:
  Unknown
Status in “network-manager” package in Ubuntu:
  Triaged

Bug description:
  From the source for network-manager-0.9.3.995+git201203152001.04b2a74,
  I see that NM would treat any NIC names resulting from having
  biosdevname enabled (of the form em* and p*p*) as wireless interfaces.
  This is apparent from src/settings/plugins/ifnet/net_parser.c and
  src/settings/plugins/ifnet/connection_parser.c.

  init_block_by_line in src/settings/plugins/ifnet/net_parser.c:

          if ((conn = get_connection_config (pos)) == NULL) {
                  if (g_ascii_strncasecmp (pos, "eth", 3) == 0
                      && strlen (pos) == 4)
                          /* wired connection */
                          conn = add_new_connection_config ("wired", pos);
                  else if (g_ascii_strncasecmp (pos, "ppp", 3) == 0
                           && strlen (pos) == 4)
                          /* pppoe connection */
                          conn = add_new_connection_config ("ppp", pos);
                  else if (ignore_connection_name (pos)) {
                          /* ignored connection */
                          conn = add_new_connection_config ("ignore", pos);
                  } else
                          /* wireless connection */
                          conn = add_new_connection_config ("wireless", pos);
          }

  
  get_wired_name in src/settings/plugins/ifnet/connection_parser.c:

                  gchar *conn_name = g_strdup_printf ("eth%d", i);

  It is not clear to me if any wireless interfaces would be named of the
  forms em* or p*p*, so I do not know if it would be sufficient to check
  the name of an interface to determine what type it is. However, it at
  least would usually be incorrect to label an interface called, say,
  em1 as a wireless interface.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to