netifd: Interface last error support
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 8 Apr 2015 14:20:22 +0000 (16:20 +0200)
committerJohn Crispin <blogic@openwrt.org>
Fri, 3 Apr 2015 08:44:54 +0000 (10:44 +0200)
commit92d2aea918f650f309f753349457028032d53280
treee221bfb22d1cfe3980b5881bd2c66810118b84ca
parent3a0f953722698eab6f3f623a1d6ec5a1b7102b77
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 <johan.peeters111@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface.c
proto-shell.c
proto.c
proto.h
scripts/netifd-proto.sh