summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-24 11:12:48 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-07-24 11:12:50 +0200
commit5844d3caa26f5f8810476836a8b711107e4ba8d7 (patch)
tree2debeb439e416f30b04bb59773e181e811ecd398 /interface.h
parent81b14db5ca47ae44efc5ccb982f16597873ab4ba (diff)
downloadnetifd-5844d3caa26f5f8810476836a8b711107e4ba8d7.tar.gz
interface: fix restart after reload with external devices
When an interface goes down, the main_dev is reset to NULL. Track an externally added device separately to be able to bring it back up. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.h b/interface.h
index 6cfe264..1cd7e96 100644
--- a/interface.h
+++ b/interface.h
@@ -119,6 +119,7 @@ struct interface {
/* main interface that the interface is bound to */
struct device_user main_dev;
+ struct device_user ext_dev;
/* interface that layer 3 communication will go through */
struct device_user l3_dev;