• Alessandro Rubini's avatar
    shell: implement vlan command · ab7cb867
    Alessandro Rubini authored
    This allows a run-time change of the active vlan, if CONFIG_VLAN is
    active at build time.  The pfilter rules are being rewritten every
    time the vlan is changed (and we have one VLAN only for the CPU).
    
       wrc# vlan set 0
       0 ("0") out of range
       Command "vlan": error -22
       wrc# vlan set pippo
       0 ("pippo") out of range
       Command "vlan": error -22
    
       wrc# vlan
       current vlan: 10 (0xa)
    
       wrc# vlan set 20
       current vlan: 20 (0x14)
       wrc# ip set 192.168.20.2
       IP-address: 192.168.20.2 (static assignment)
    
          (and the node now replies to ping on vlan 20)
    
       wrc# vlan set 10
       current vlan: 10 (0xa)
       wrc# ip set 192.168.10.2
       IP-address: 192.168.10.2 (static assignment)
    
          (and the node now replies to ping on vlan 10)
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    ab7cb867
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 5c5c8039
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrs_main.c Loading commit data...