summaryrefslogtreecommitdiff
path: root/proto-shell.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2014-02-11 08:30:51 +0000
committerSteven Barth <steven@midlink.org>2014-02-27 12:15:32 +0100
commitf35b76c61baf68dc5dd8440fc06d860f8dfacc44 (patch)
treec04889155d11b42469756d1744f716b7f0dfab25 /proto-shell.c
parent3d26347d0042313be3c9347f8d82c4ccea67fe68 (diff)
downloadnetifd-f35b76c61baf68dc5dd8440fc06d860f8dfacc44.tar.gz
netifd: Link layer state awareness support on interface level
The link layer state is monitored for a given interface; an interface will be setup when both enabled and link layer active. Likewise an interface will be teared down when either disabled or link layer down. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto-shell.c b/proto-shell.c
index 1a69c19..37859f4 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -158,6 +158,7 @@ proto_shell_handler(struct interface_proto_state *proto,
action = "setup";
state->last_error = -1;
proto_shell_clear_host_dep(state);
+ state->sm = S_SETUP;
} else {
if (state->sm == S_TEARDOWN)
return 0;