From 7335c3e19ea09674245dda3653d3f40705e68d6b Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 19 Nov 2013 12:17:09 +0100 Subject: netifd: Link layer state support on interface level Patch implements handling of link layer support on interface level. An interface will go into the setup state when it's enabled and the underlying link state is enabled. Vice versa an interface will go to the down state when it's either disabled or underlying link state is disabled. Testing has been done with PPP, IPoE, tunnel and static interfaces Signed-off-by: Hans Dedecker --- interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'interface.h') diff --git a/interface.h b/interface.h index 4b7de59..1004bdd 100644 --- a/interface.h +++ b/interface.h @@ -95,6 +95,8 @@ struct interface { bool autostart; bool config_autostart; bool device_config; + bool enabled; + bool link_state; bool dynamic; time_t start_time; -- cgit v1.2.1