diff options
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-25 17:16:55 +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-25 17:16:55 +0000 |
commit | 5bf8bfa0a0f3846ad981e14cb585e583ef4ac251 (patch) | |
tree | 5cd7bc95f15cd6ee78ed3005f30e510050b79a1b /libnfnetlink.h | |
parent | c776a4a0d9364dfacc7903e38c53b448ad1e4b11 (diff) |
- use peer address of handle when sending message in nfnl_send()
- add new nfnl_sendmsg() and nfnl_sendiov() send variants
- add new nfnl_build_nfa_iovec() function
Diffstat (limited to 'libnfnetlink.h')
-rw-r--r-- | libnfnetlink.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libnfnetlink.h b/libnfnetlink.h index ebf61f2..d4c895d 100644 --- a/libnfnetlink.h +++ b/libnfnetlink.h @@ -28,7 +28,11 @@ struct nfnl_handle { extern int nfnl_open(struct nfnl_handle *, u_int8_t, unsigned int); extern int nfnl_close(struct nfnl_handle *); extern int nfnl_send(struct nfnl_handle *, struct nlmsghdr *); - +extern int nfnl_sendmsg(const struct nfnl_handle *, const struct msghdr *msg, + unsigned int flags); +extern int nfnl_sendiov(const struct nfnl_handle *nfnlh, + const struct iovec *iov, unsigned int num, + unsigned int flags); extern void nfnl_fill_hdr(struct nfnl_handle *, struct nlmsghdr *, unsigned int, u_int8_t, u_int16_t, u_int16_t, @@ -58,5 +62,9 @@ extern int nfnl_parse_attr(struct nfattr **, int, struct nfattr *, int); #define nfnl_nest_end(nlh, tail) \ ({ (tail)->nfa_len = (void *) NLMSG_TAIL(nlh) - (void *) tail; }) +extern void nfnl_build_nfa_iovec(struct iovec *iov, struct nfattr *nfa, + u_int16_t type, u_int32_t len, + unsigned char *val); + extern void nfnl_dump_packet(struct nlmsghdr *, int, char *); #endif /* __LIBNFNETLINK_H */ |