diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-27 13:33:08 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-01 08:08:05 -0500 |
| commit | 936ebf0a2dd70f59bf846bad9f1a0fe04c87e37e (patch) | |
| tree | 2404d340c89ffb565afc6355130f149bbd9d055d /zebra/kernel_netlink.h | |
| parent | f9c5f9f77107e82313661a50a6dc4e58906b799f (diff) | |
zebra: Add knowledge of whether or not we are acting under startup conditions
The reading if unicast routes from the kernel acts subtly differently
between reading in the routes from the kernel on startup and
reading a new route or getting a response for a route.
Add startup flag(currently ignored) so that we can start
consolidating the functionality.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_netlink.h')
| -rw-r--r-- | zebra/kernel_netlink.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/zebra/kernel_netlink.h b/zebra/kernel_netlink.h index f17f1380c2..adbcf71f63 100644 --- a/zebra/kernel_netlink.h +++ b/zebra/kernel_netlink.h @@ -44,14 +44,15 @@ extern const char * nl_family_to_str (u_char family); extern const char * nl_rttype_to_str (u_char rttype); extern int netlink_parse_info (int (*filter) (struct sockaddr_nl *, - struct nlmsghdr *, ns_id_t), struct nlsock *nl, - struct zebra_ns *zns, int count); + struct nlmsghdr *, ns_id_t, int), + struct nlsock *nl, struct zebra_ns *zns, + int count, int startup); extern int netlink_talk_filter (struct sockaddr_nl *, struct nlmsghdr *, - ns_id_t); + ns_id_t, int startup); extern int netlink_talk (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *, - ns_id_t), + ns_id_t, int startup), struct nlmsghdr *n, struct nlsock *nl, - struct zebra_ns *zns); + struct zebra_ns *zns, int startup); extern int netlink_request (int family, int type, struct nlsock *nl); #endif /* HAVE_NETLINK */ |
