From 201893986f051d1d362669df9176c69f820673e7 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 22 Aug 2017 18:32:24 +0200 Subject: src: add struct mnl_ctx This new structure contains the netlink socket and the sequence number. Signed-off-by: Pablo Neira Ayuso --- include/mnl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mnl.h b/include/mnl.h index affbf746..72072f7f 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -3,8 +3,12 @@ #include #include +#include -struct mnl_socket; +struct mnl_ctx { + struct mnl_socket *nf_sock; + unsigned int seqnum; +}; struct mnl_socket *netlink_open_sock(void); void netlink_close_sock(struct mnl_socket *nf_sock); -- cgit v1.2.3