aboutsummaryrefslogtreecommitdiffstats
path: root/package/swconfig/src/cli.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-20 07:06:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-20 07:06:12 +0000
commit428f066b774c56674e57769a652d749cbfb81470 (patch)
tree3327852d0d893870148d015c44f3a2f13fbd7fd5 /package/swconfig/src/cli.c
parentfbc389ae9d6e920561555e011a02109978d33b3a (diff)
downloadupstream-428f066b774c56674e57769a652d749cbfb81470.tar.gz
upstream-428f066b774c56674e57769a652d749cbfb81470.tar.bz2
upstream-428f066b774c56674e57769a652d749cbfb81470.zip
swconfig: show tagged port flag
SVN-Revision: 19238
Diffstat (limited to 'package/swconfig/src/cli.c')
-rw-r--r--package/swconfig/src/cli.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/swconfig/src/cli.c b/package/swconfig/src/cli.c
index cf3a519482..23a8e95f9d 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;
}