aboutsummaryrefslogtreecommitdiffstats
path: root/package/swconfig/src
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
commit6f781ad0bcd8e76e1aeda754f609573206566fd2 (patch)
tree8d8506a816ca1ace83cc9b00a8b81934ee10fd58 /package/swconfig/src
parent56ebadac0cd31270270eb5f637f98ae5e1b08d40 (diff)
downloadmaster-187ad058-6f781ad0bcd8e76e1aeda754f609573206566fd2.tar.gz
master-187ad058-6f781ad0bcd8e76e1aeda754f609573206566fd2.tar.bz2
master-187ad058-6f781ad0bcd8e76e1aeda754f609573206566fd2.zip
swconfig: show tagged port flag
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19238 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/swconfig/src')
-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;
}