summaryrefslogtreecommitdiffstats
path: root/include/libnfnetlink/libnfnetlink.h
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-08-06 22:17:20 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-08-06 22:17:20 +0000
commite741e28ee8a89bd7637a972339486dabb500438b (patch)
treea9fa9255c494437e64fa84e796757e1b12ad901e /include/libnfnetlink/libnfnetlink.h
parent14c6542e9d79cc2ebc23c6a3fba691f63f55a26f (diff)
- add nfnl_fd() accessor function
- export nfnl_check_attributes() - fix segfault (nfnlh->cb assignment missing) - memset() the nfattr array in nfnl_parse_attr() - fix endless loop in msg_next()
Diffstat (limited to 'include/libnfnetlink/libnfnetlink.h')
-rw-r--r--include/libnfnetlink/libnfnetlink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h
index d88c7fa..edd480d 100644
--- a/include/libnfnetlink/libnfnetlink.h
+++ b/include/libnfnetlink/libnfnetlink.h
@@ -35,6 +35,8 @@ struct nfnl_handle {
struct nfnl_callback *cb; /* array of callbacks */
};
+extern int nfnl_fd(struct nfnl_handle *h);
+
/* get a new library handle */
extern int nfnl_open(struct nfnl_handle *, u_int8_t, u_int8_t, unsigned int);
extern int nfnl_close(struct nfnl_handle *);
@@ -69,6 +71,9 @@ extern int nfnl_handle_packet(struct nfnl_handle *, char *buf, int len);
extern struct nfattr *nfnl_parse_hdr(const struct nfnl_handle *nfnlh,
const struct nlmsghdr *nlh,
struct nfgenmsg **genmsg);
+extern int nfnl_check_attributes(const struct nfnl_handle *nfnlh,
+ const struct nlmsghdr *nlh,
+ struct nfattr *tb[]);
extern struct nlmsghdr *nfnl_get_msg_first(struct nfnl_handle *h,
const unsigned char *buf,
size_t len);