X-Git-Url: https://git.sur5r.net/?p=gsconf;a=blobdiff_plain;f=shell_vlan.c;h=80dfcb102254c3e27e2043b1c266d1026a7321f8;hp=83f004a0a0ba3d625a44c80e099f9e3f98263748;hb=11ae7c1958d87f75fb840c6556fa99abf85e6607;hpb=84795a4c9a792a8ab63f71174fef707a4776a078 diff --git a/shell_vlan.c b/shell_vlan.c index 83f004a..80dfcb1 100644 --- a/shell_vlan.c +++ b/shell_vlan.c @@ -8,6 +8,18 @@ void shell_vlan(char ** argv, int elem) { return; } + + if (strncmp(argv[1], "enable", 6) == 0) { + password(); + printError(gs105e_vlanEnable()); + return; + } + + if (settings.vlanType != 4) { + printf("Type vlan enable once to configure vlan\n"); + return; + } + if (strncmp(argv[1], "show", 4) == 0) { struct vlan * vl = settings.vlans;