diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2013-11-19 12:17:09 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-08 18:43:51 +0100 |
commit | 7335c3e19ea09674245dda3653d3f40705e68d6b (patch) | |
tree | 56aac2a32502da6f4bc5ae157b9c39eb98cada52 /interface.h | |
parent | c439b52400978dd3799c66e1f632ee68d2c7c9eb (diff) |
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 <dedeckeh@gmail.com>
Diffstat (limited to 'interface.h')
-rw-r--r-- | interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |