diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 09:59:00 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-19 13:34:06 -0400 |
| commit | 26f8f6fe7fb90208d4a5eb285fdf0dca83bde508 (patch) | |
| tree | ecc4681a1f33c82a787e16e1f0148ef5916f8e47 /lib/zclient.c | |
| parent | 3c3c325203848994bae83a85cb606d4e4deeeb25 (diff) | |
lib: delete interface if you can in upper level protocol
In an upper level protocol, delete the interface on notification
about deletion.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 6ba71eba49..9129466685 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -49,6 +49,9 @@ enum event { ZCLIENT_SCHEDULE, ZCLIENT_READ, ZCLIENT_CONNECT }; /* Prototype for event manager. */ static void zclient_event(enum event, struct zclient *); +static void zebra_interface_if_set_value(struct stream *s, + struct interface *ifp); + struct zclient_options zclient_options_default = {.receive_notify = false}; struct sockaddr_storage zclient_addr; @@ -1696,7 +1699,8 @@ struct interface *zebra_interface_link_params_read(struct stream *s, return ifp; } -void zebra_interface_if_set_value(struct stream *s, struct interface *ifp) +static void zebra_interface_if_set_value(struct stream *s, + struct interface *ifp) { uint8_t link_params_status = 0; ifindex_t old_ifindex; |
