diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-04-16 19:32:40 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-04-16 19:32:40 +0000 |
commit | f7cc3d576cec068f7722da7d86885164cdf99823 (patch) | |
tree | 86b92e62ab0b6fc27012d8950b2168155cd4056a /package/swconfig/src/swlib.h | |
parent | e1079c515a1d2ff08d829e11de6827741d2154f7 (diff) | |
download | upstream-f7cc3d576cec068f7722da7d86885164cdf99823.tar.gz upstream-f7cc3d576cec068f7722da7d86885164cdf99823.tar.bz2 upstream-f7cc3d576cec068f7722da7d86885164cdf99823.zip |
swconfig: Add cpu port index to help output.
Let swconfig provide the cpu port index in its help page. This is
needed as e.g. Atheros switches have their cpu port at port 0, not
port 5.
This could allow e.g. luci to get a rough overview of the layout of
the switch.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 20939
Diffstat (limited to 'package/swconfig/src/swlib.h')
-rw-r--r-- | package/swconfig/src/swlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/swconfig/src/swlib.h b/package/swconfig/src/swlib.h index b3c6769de1..2c2fccd394 100644 --- a/package/swconfig/src/swlib.h +++ b/package/swconfig/src/swlib.h @@ -118,6 +118,7 @@ struct switch_dev { const char *dev_name; int ports; int vlans; + int cpu_port; struct switch_attr *ops; struct switch_attr *port_ops; struct switch_attr *vlan_ops; |