projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubus: use interface_{add,remove}_link for hotplug ops
[project/netifd.git]
/
device.h
diff --git
a/device.h
b/device.h
index
338138f
..
2b7fb13
100644
(file)
--- a/
device.h
+++ b/
device.h
@@
-74,6
+74,13
@@
struct device_user {
void (*cb)(struct device_user *, enum device_event);
};
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
/*
* link layer device. typically represents a linux network device.
* can be used to support VLANs as well
@@
-105,12
+112,8
@@
struct device {
struct device_user parent;
struct device_user parent;
- /* settings */
- unsigned int flags;
-
- unsigned int mtu;
- unsigned int txqueuelen;
- uint8_t macaddr[6];
+ struct device_settings orig_settings;
+ struct device_settings settings;
};
struct device_hotplug_ops {
};
struct device_hotplug_ops {