switch: export name of device found via /proc

SVN-Revision: 35596
This commit is contained in:
Hauke Mehrtens
2013-02-14 12:36:52 +00:00
parent 60913bbac6
commit 243c582213
4 changed files with 16 additions and 1 deletions

View File

@@ -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 {