projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
detach stdin/stdout/stderr from child processes, implement a separate logging pipe...
[project/netifd.git]
/
interface.h
diff --git
a/interface.h
b/interface.h
index
9a9b211
..
6620796
100644
(file)
--- a/
interface.h
+++ b/
interface.h
@@
-8,8
+8,8
@@
struct interface;
struct interface_proto_state;
enum interface_event {
struct interface_proto_state;
enum interface_event {
- IFEV_UP,
IFEV_DOWN,
IFEV_DOWN,
+ IFEV_UP,
};
enum interface_state {
};
enum interface_state {
@@
-38,6
+38,8
@@
struct interface_error {
*/
struct interface {
struct vlist_node node;
*/
struct interface {
struct vlist_node node;
+ struct list_head hotplug_list;
+ enum interface_event hotplug_ev;
char name[IFNAMSIZ];
const char *ifname;
char name[IFNAMSIZ];
const char *ifname;
@@
-46,6
+48,7
@@
struct interface {
bool autostart;
bool config_autostart;
bool autostart;
bool config_autostart;
+ time_t start_time;
enum interface_state state;
enum interface_config_state config_state;
enum interface_state state;
enum interface_config_state config_state;
@@
-64,6
+67,9
@@
struct interface {
struct vlist_tree proto_addr;
struct vlist_tree proto_route;
struct vlist_tree proto_addr;
struct vlist_tree proto_route;
+ struct list_head proto_dns_servers;
+ struct list_head proto_dns_search;
+
/* errors/warnings while trying to bring up the interface */
struct list_head errors;
/* errors/warnings while trying to bring up the interface */
struct list_head errors;
@@
-91,6
+97,9
@@
void interface_remove_link(struct interface *iface, struct device *llif);
void interface_add_error(struct interface *iface, const char *subsystem,
const char *code, const char **data, int n_data);
void interface_add_error(struct interface *iface, const char *subsystem,
const char *code, const char **data, int n_data);
+void interface_queue_event(struct interface *iface, enum interface_event ev);
+void interface_dequeue_event(struct interface *iface);
+
void interface_start_pending(void);
#endif
void interface_start_pending(void);
#endif