diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-01-22 18:43:36 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-01-22 18:43:36 +0100 |
commit | 91fa29a0d17b40963f67f08e740ca0a07365db90 (patch) | |
tree | 606753219fe2321062f660ba6f1017183455f9ce /device.h | |
parent | c85a502081ef76aef0a9e9fb9af65257c2e415a2 (diff) |
move device settings to a separate struct
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 { |