diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-23 15:37:06 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-24 15:14:43 +0200 |
commit | 2414abd3b0adbb48855135b14e5cdbf21b3cc308 (patch) | |
tree | e4781439b90d299753c1ac72c6df469f8075292c /zebra/kernel_netlink.h | |
parent | zebra: Move where we check for non-kernel netlink messages (diff) | |
download | frr-2414abd3b0adbb48855135b14e5cdbf21b3cc308.tar.xz frr-2414abd3b0adbb48855135b14e5cdbf21b3cc308.zip |
zebra: Remove unnecessary function parameter
The snl variable is no longer needed to be passed around, so
remove it from the calling path.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/kernel_netlink.h')
-rw-r--r-- | zebra/kernel_netlink.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/zebra/kernel_netlink.h b/zebra/kernel_netlink.h index dc075b9af..3b4048ff6 100644 --- a/zebra/kernel_netlink.h +++ b/zebra/kernel_netlink.h @@ -45,14 +45,11 @@ extern const char *nl_rtproto_to_str(uint8_t rtproto); extern const char *nl_family_to_str(uint8_t family); extern const char *nl_rttype_to_str(uint8_t rttype); -extern int netlink_parse_info(int (*filter)(struct sockaddr_nl *, - struct nlmsghdr *, ns_id_t, int), +extern int netlink_parse_info(int (*filter)(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, - int startup); -extern int netlink_talk(int (*filter)(struct sockaddr_nl *, struct nlmsghdr *, - ns_id_t, int startup), +extern int netlink_talk_filter(struct nlmsghdr *h, ns_id_t ns, int startup); +extern int netlink_talk(int (*filter)(struct nlmsghdr *, ns_id_t, int startup), struct nlmsghdr *n, struct nlsock *nl, struct zebra_ns *zns, int startup); extern int netlink_request(struct nlsock *nl, struct nlmsghdr *n); |