typedef struct {
struct list_head list;
char *name;
+ char *version;
char *interface;
int cpuport;
int ports;
extern int switch_parse_media(char *buf);
extern int switch_print_media(char *buf, int media);
+static inline char *strdup(char *str)
+{
+ char *new = kmalloc(strlen(str) + 1, GFP_KERNEL);
+ strcpy(new, str);
+ return new;
+}
+
+
#endif