From 92d2aea918f650f309f753349457028032d53280 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 8 Apr 2015 16:20:22 +0200 Subject: netifd: Interface last error support Adds interface last error support which preserves the last reported error reported by the protocol handler till the interface is up; e.g. survives network reload and interface restarts. This is mainly usefull for tracking down why an interface fails to establish; eg auth failure/traffic limit for PPP interfaces Protocol handlers register last error support by setting lasterror=1 in the proto_init function Signed-off-by: Johan Peeters Signed-off-by: Hans Dedecker --- scripts/netifd-proto.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/netifd-proto.sh b/scripts/netifd-proto.sh index ce60cd0..95c1bb3 100644 --- a/scripts/netifd-proto.sh +++ b/scripts/netifd-proto.sh @@ -375,6 +375,7 @@ init_proto() { json_add_boolean no-device "$no_device" json_add_boolean available "$available" json_add_boolean renew-handler "$renew_handler" + json_add_boolean lasterror "$lasterror" json_dump } ;; -- cgit v1.2.3