path: root/include
diff options
authorVarsha Rao <>2017-07-19 18:04:07 +0530
committerPablo Neira Ayuso <>2017-07-19 19:24:18 +0200
commit2b261897fa07006e8a46003f8448b69691555314 (patch)
tree0451c11348a48cb299f528f59b46fd965c5021bc /include
parent19cd540390e32f2e1f62e205ddb691d1e6e06152 (diff)
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 <>
Diffstat (limited to 'include')
1 files changed, 2 insertions, 1 deletions
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);