swconfig: show tagged port flag
authorGabor Juhos <juhosg@openwrt.org>
Wed, 20 Jan 2010 07:06:12 +0000 (07:06 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 20 Jan 2010 07:06:12 +0000 (07:06 +0000)
SVN-Revision: 19238

package/swconfig/Makefile
package/swconfig/src/cli.c

index 72af8c735f2b80d4f304312fec1fb181009ccad5..dbc38ec34377b90fecc9076b191a88514f01bc98 100644 (file)
@@ -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
index cf3a519482fb053d4bf8a4631d2620cbcb0ba6f1..23a8e95f9d2c6ef3ba61e75a8f747ac647e5028f 100644 (file)
@@ -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;
                }