diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-11-02 09:22:10 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-11-04 13:24:02 +0100 |
commit | b8ef742bd04ebef324ae11aee56c6e1d2cb7e0ad (patch) | |
tree | a7a50335577fef91f6e4fe23a926d89769f11a69 /interface.h | |
parent | bf4cfc851d422c742e7c38bd552b792194655a7e (diff) |
interface: Fix triggering of interface update event
In case the keep flag is set in proto_shell_update_link no interface
update event is triggered when IPv4/6 addresses/routes/... are updated
as the proto_event callback is not called due to keep being set.
Unconditionally call the proto_event callback handler in proto_shell_update_link
but let the proto_event callback handler; in this case interface_proto_event_cb,
decide which actions need to be taken dependant on the interface state.
In case the interface is already in the up state trigger an update event
only if the interface updated flag actually indicates either an IP address/
route/data change; before interface update events were actually sent wihtout
any parameter change.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.h')
-rw-r--r-- | interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.h b/interface.h index aa2085d..7d5b309 100644 --- a/interface.h +++ b/interface.h @@ -199,7 +199,7 @@ void interface_add_error(struct interface *iface, const char *subsystem, int interface_add_data(struct interface *iface, const struct blob_attr *data); int interface_parse_data(struct interface *iface, const struct blob_attr *attr); -void interface_update_start(struct interface *iface); +void interface_update_start(struct interface *iface, const bool keep_old); void interface_update_complete(struct interface *iface); void interface_start_pending(void); |