X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.h;h=12176ce7175ed77c3d46d035f2e923a6143840b0;hp=338138f42803411ea0e884b6c454c9e8f10cf6a0;hb=91fa29a0d17b40963f67f08e740ca0a07365db90;hpb=c85a502081ef76aef0a9e9fb9af65257c2e415a2 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 {