diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-05-03 00:53:40 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-05-03 00:53:40 +0200 |
commit | f6fb6bee2c29f31d13d0b0288f4f680b6b56e9ba (patch) | |
tree | 1bf7e863882ff56f93ecb493c5ab55e0471112fa /interface.c | |
parent | 273550337f70b8b2175875e0c4f0bbd483cfe326 (diff) |
add routes/gateway support
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.c b/interface.c index 0a53151..dd303ef 100644 --- a/interface.c +++ b/interface.c @@ -104,6 +104,7 @@ __set_interface_down(struct interface *iface, bool force) iface->state = IFS_TEARDOWN; interface_event(iface, IFEV_DOWN); + interface_del_all_routes(iface); interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, force); } |