diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-20 07:06:12 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-20 07:06:12 +0000 |
commit | 03429968abb01489731db1810f4e99e4a126250d (patch) | |
tree | 8d8506a816ca1ace83cc9b00a8b81934ee10fd58 | |
parent | 77450dabca4497bbfb5e353de5d566813a551ee5 (diff) |
swconfig: show tagged port flag
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19238 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/swconfig/Makefile | 2 | ||||
-rw-r--r-- | package/swconfig/src/cli.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/package/swconfig/Makefile b/package/swconfig/Makefile index 72af8c735..dbc38ec34 100644 --- a/package/swconfig/Makefile +++ b/package/swconfig/Makefile @@ -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 diff --git a/package/swconfig/src/cli.c b/package/swconfig/src/cli.c index cf3a51948..23a8e95f9 100644 --- a/package/swconfig/src/cli.c +++ b/package/swconfig/src/cli.c @@ -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; } |