From f35b76c61baf68dc5dd8440fc06d860f8dfacc44 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 11 Feb 2014 08:30:51 +0000 Subject: 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 --- proto-shell.c | 1 + 1 file changed, 1 insertion(+) (limited to 'proto-shell.c') 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; -- cgit v1.2.1