summaryrefslogtreecommitdiffstats
path: root/package/switch/src/switch-core.h
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-14 12:36:52 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-14 12:36:52 +0000
commitd8af1489e0e3cbeba49897e8f6dee1572295dd43 (patch)
treeb5a9c9744bf5a5c89a9ed7acf3a208e7aa6eadc7 /package/switch/src/switch-core.h
parent03eaf681abe52e6ea4bf52670f0a69baceb30245 (diff)
switch: export name of device found via /proc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35596 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src/switch-core.h')
-rw-r--r--package/switch/src/switch-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/switch/src/switch-core.h b/package/switch/src/switch-core.h
index 7192f7b0f..cc520e493 100644
--- a/package/switch/src/switch-core.h
+++ b/package/switch/src/switch-core.h
@@ -4,6 +4,7 @@
#include <linux/version.h>
#include <linux/list.h>
#define SWITCH_MAX_BUFSZ 4096
+#define SWITCH_NAME_BUFSZ 16
#define SWITCH_MEDIA_AUTO 1
#define SWITCH_MEDIA_100 2
@@ -28,6 +29,7 @@ typedef struct {
const switch_config *driver_handlers, *port_handlers, *vlan_handlers;
void *data;
void *priv;
+ char dev_name[SWITCH_NAME_BUFSZ];
} switch_driver;
typedef struct {