From 2b261897fa07006e8a46003f8448b69691555314 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 19 Jul 2017 18:04:07 +0530 Subject: src: netlink: Remove variable nf_mon_sock. Remove variable nf_mon_sock of type structure mnl_socket to avoid duplicity. Instead variable nf_sock of the same type is passed as argument to netlink_monitor(). Also remove netlink_open_mon_sock() function definition, which is no longer required. Suggested-by: Pablo Neira Ayuso Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/netlink.h b/include/netlink.h index 5b43c5c7..7865186b 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -218,7 +218,8 @@ struct netlink_mon_handler { bool cache_needed; }; -extern int netlink_monitor(struct netlink_mon_handler *monhandler); +extern int netlink_monitor(struct netlink_mon_handler *monhandler, + struct mnl_socket *nf_sock); bool netlink_batch_supported(struct mnl_socket *nf_sock); #endif /* NFTABLES_NETLINK_H */ -- cgit v1.2.3