From: Tom Gundersen <[email protected]>
Date: Thu, 17 Jul 2014 10:06:04 +0200
> @@ -192,8 +193,10 @@ int ieee802154_add_iface(struct sk_buff *skb, struct
> genl_info *info)
> if (devname[nla_len(info->attrs[IEEE802154_ATTR_DEV_NAME]) - 1]
> != '\0')
> return -EINVAL; /* phy name should be null-terminated */
> + name_assign_type = NET_NAME_USER;
> } else {
> devname = "wpan%d";
> + name_assign_type = NET_NAME_ENUM;
> }
>
> if (strlen(devname) >= IFNAMSIZ)
Just wondering what should happen if "%d" appears in a user provided name.
That would seem to be both USER and ENUM.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Linux-zigbee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel