[Bug 8261] New: vlan creation with proto option is not working

bugzilla at busybox.net bugzilla at busybox.net
Wed Aug 5 18:00:56 UTC 2015


           Summary: vlan creation with proto option is not working
           Product: Busybox
           Version: 1.24.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Networking
        AssignedTo: unassigned at busybox.net
        ReportedBy: a.dibacco at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0

Try to issue the following command:

iplink add link eth0 eth0.24 type vlan proto 802.1ad id 24

It answers with:

argument of "protocol" must be "on" or "off"

I saw that in iplink.c in function vlan_parse_opt the keywords array and
related enum are not consistent. ARG_protocol is listed at the end of enum and
should be at the second place.

static void vlan_parse_opt(char **argv, struct nlmsghdr *n, unsigned int size)
    static const char keywords[] ALIGN1 =

    enum {
        ARG_id = 0,

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the busybox-cvs mailing list