summaryrefslogtreecommitdiffstats
path: root/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-07-30 16:39:46 +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-07-30 16:39:46 +0000
commita3c179d2af76c658dbeac434118d85b8630d000a (patch)
treea2c63f24077e7775069821e0dfe66560de1a73a2 /libnfnetlink.h
parentb1304ebe83504fa38d087c12a1f8772142f57440 (diff)
Add nfnl_rcvbufsiz(), nfnl_msg_get_first(), nfnl_msg_get_next()
Diffstat (limited to 'libnfnetlink.h')
-rw-r--r--libnfnetlink.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libnfnetlink.h b/libnfnetlink.h
index 43ed151..95ec004 100644
--- a/libnfnetlink.h
+++ b/libnfnetlink.h
@@ -23,6 +23,7 @@ struct nfnl_handle {
u_int8_t subsys_id;
u_int32_t seq;
u_int32_t dump;
+ struct nlmsghdr *last_nlhdr;
};
/* get a new library handle */
@@ -39,7 +40,7 @@ extern void nfnl_fill_hdr(struct nfnl_handle *, struct nlmsghdr *,
unsigned int, u_int8_t, u_int16_t, u_int16_t,
u_int16_t);
-extern struct nfattr *nfnl_parse_hdr(struct nfnl_handle *nfnlh,
+extern struct nfattr *nfnl_parse_hdr(const struct nfnl_handle *nfnlh,
const struct nlmsghdr *nlh,
struct nfgenmsg **genmsg);
@@ -70,6 +71,15 @@ extern int nfnl_parse_attr(struct nfattr **, int, struct nfattr *, int);
extern void nfnl_build_nfa_iovec(struct iovec *iov, struct nfattr *nfa,
u_int16_t type, u_int32_t len,
unsigned char *val);
+extern unsigned int nfnl_rcvbufsiz(struct nfnl_handle *h, unsigned int size);
+
+
+extern struct nlmsghdr *nfnl_get_msg_first(struct nfnl_handle *h,
+ const unsigned char *buf,
+ size_t len);
+extern struct nlmsghdr *nfnl_get_msg_next(struct nfnl_handle *h,
+ const unsigned char *buf,
+ size_t len);
extern void nfnl_dump_packet(struct nlmsghdr *, int, char *);
#endif /* __LIBNFNETLINK_H */