mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:37:10 +02:00
swconfig: show tagged port flag
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19238 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
77450dabca
commit
03429968ab
@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=swconfig
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
@ -249,8 +249,12 @@ int main(int argc, char **argv)
|
||||
printf("%s\n", val.value.s);
|
||||
break;
|
||||
case SWITCH_TYPE_PORTS:
|
||||
for(i = 0; i < val.len; i++)
|
||||
printf("%d ", val.value.ports[i]);
|
||||
for(i = 0; i < val.len; i++) {
|
||||
printf("%d%s ",
|
||||
val.value.ports[i].id,
|
||||
(val.value.ports[i].flags &
|
||||
SWLIB_PORT_FLAG_TAGGED) ? "t" : "");
|
||||
}
|
||||
printf("\n");
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user