diff options
author | Varsha Rao <rvarsha016@gmail.com> | 2017-07-19 18:04:07 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-19 19:24:18 +0200 |
commit | 2b261897fa07006e8a46003f8448b69691555314 (patch) | |
tree | 0451c11348a48cb299f528f59b46fd965c5021bc /include/netlink.h | |
parent | 19cd540390e32f2e1f62e205ddb691d1e6e06152 (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 <pablo@netfilter.org>
Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/netlink.h')
-rw-r--r-- | include/netlink.h | 3 |
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); #endif /* NFTABLES_NETLINK_H */ |