From e7bcbbc16fa1db3704d897905b720932fdddc8ec Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Mon, 9 Jul 2007 16:02:28 +0000 Subject: - introduce nfct_nfnlh() to use functions like nfnl_rcvbufsiz(): return read-only nfnl_handle - remove unused build_id() from build.c - bump version to 0.0.81 --- src/conntrack/build.c | 9 +-------- src/libnetfilter_conntrack.c | 5 +++++ 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/conntrack/build.c b/src/conntrack/build.c index 774e3c5..d04ad86 100644 --- a/src/conntrack/build.c +++ b/src/conntrack/build.c @@ -1,5 +1,5 @@ /* - * (C) 2006 by Pablo Neira Ayuso + * (C) 2006-2007 by Pablo Neira Ayuso * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. @@ -224,13 +224,6 @@ void __build_mark(struct nfnlhdr *req, nfnl_addattr32(&req->nlh, size, CTA_MARK, htonl(ct->mark)); } -void __build_id(struct nfnlhdr *req, - size_t size, - const const struct nf_conntrack *ct) -{ - nfnl_addattr32(&req->nlh, size, CTA_ID, htonl(ct->id)); -} - int __build_conntrack(struct nfnl_subsys_handle *ssh, struct nfnlhdr *req, size_t size, diff --git a/src/libnetfilter_conntrack.c b/src/libnetfilter_conntrack.c index 66f215a..b647694 100644 --- a/src/libnetfilter_conntrack.c +++ b/src/libnetfilter_conntrack.c @@ -159,6 +159,11 @@ int nfct_fd(struct nfct_handle *cth) return nfnl_fd(cth->nfnlh); } +const struct nfnl_handle *nfct_nfnlh(struct nfct_handle *cth) +{ + return cth->nfnlh; +} + void nfct_register_callback(struct nfct_handle *cth, nfct_callback callback, void *data) { -- cgit v1.2.3