diff options
author | Jonas Gorski <jogo@openwrt.org> | 2011-07-27 18:00:18 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2011-07-27 18:00:18 +0000 |
commit | eaa935658b7ec77bfd8b99b557ad196425b620f4 (patch) | |
tree | 85ae0f6e1bff3c06ac7b12de828d5a6a86194931 /package/swconfig/src/swlib.h | |
parent | 8ff7756e829dde4fcf69eeb9cca673cc7c7bd945 (diff) | |
download | upstream-eaa935658b7ec77bfd8b99b557ad196425b620f4.tar.gz upstream-eaa935658b7ec77bfd8b99b557ad196425b620f4.tar.bz2 upstream-eaa935658b7ec77bfd8b99b557ad196425b620f4.zip |
swconfig: Add generic switch identifiers
Also make switches available under a generic name "switch<num>" for device
name agnostic access. The old device name is used as an alias for backward
compatibility.
SVN-Revision: 27800
Diffstat (limited to 'package/swconfig/src/swlib.h')
-rw-r--r-- | package/swconfig/src/swlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/swconfig/src/swlib.h b/package/swconfig/src/swlib.h index 2c2fccd394..ff73969c87 100644 --- a/package/swconfig/src/swlib.h +++ b/package/swconfig/src/swlib.h @@ -114,8 +114,9 @@ struct uci_package; struct switch_dev { int id; + char dev_name[IFNAMSIZ]; const char *name; - const char *dev_name; + const char *alias; int ports; int vlans; int cpu_port; |