summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-01-22 18:43:36 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-01-22 18:43:36 +0100
commit91fa29a0d17b40963f67f08e740ca0a07365db90 (patch)
tree606753219fe2321062f660ba6f1017183455f9ce /device.h
parentc85a502081ef76aef0a9e9fb9af65257c2e415a2 (diff)
downloadnetifd-91fa29a0d17b40963f67f08e740ca0a07365db90.tar.gz
move device settings to a separate struct
Diffstat (limited to 'device.h')
-rw-r--r--device.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/device.h b/device.h
index 338138f..12176ce 100644
--- a/device.h
+++ b/device.h
@@ -74,6 +74,13 @@ struct device_user {
void (*cb)(struct device_user *, enum device_event);
};
+struct device_settings {
+ unsigned int flags;
+ unsigned int mtu;
+ unsigned int txqueuelen;
+ uint8_t macaddr[6];
+};
+
/*
* link layer device. typically represents a linux network device.
* can be used to support VLANs as well
@@ -105,12 +112,7 @@ struct device {
struct device_user parent;
- /* settings */
- unsigned int flags;
-
- unsigned int mtu;
- unsigned int txqueuelen;
- uint8_t macaddr[6];
+ struct device_settings settings;
};
struct device_hotplug_ops {