[libnfnetlink] nfnl: tag nfnl_talk() and nfnl_listen() as deprecated
Pablo Neira
netfilter-cvslog-bounces at lists.netfilter.org
Tue Feb 17 22:28:48 CET 2009
Gitweb: http://git.netfilter.org/cgi-bin/gitweb.cgi?p=libnfnetlink.git;a=commit;h=269a060f38395b8ec64f915f68d4f79a4430780a
commit 269a060f38395b8ec64f915f68d4f79a4430780a
Author: Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Tue Feb 17 22:28:18 2009 +0100
Commit: Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Tue Feb 17 22:28:18 2009 +0100
nfnl: tag nfnl_talk() and nfnl_listen() as deprecated
This patch tags nfnl_talk() and nfnl_listen() as deprecated
functions. The replacements nfnl_query() and nfnl_process() should
be used instead.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
via 269a060f38395b8ec64f915f68d4f79a4430780a (commit)
from de8dafc90e335cbb06252a087d25a7589b607ad2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 269a060f38395b8ec64f915f68d4f79a4430780a
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date: Tue Feb 17 22:28:18 2009 +0100
nfnl: tag nfnl_talk() and nfnl_listen() as deprecated
This patch tags nfnl_talk() and nfnl_listen() as deprecated
functions. The replacements nfnl_query() and nfnl_process() should
be used instead.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
-----------------------------------------------------------------------
include/libnfnetlink/libnfnetlink.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
This patch tags nfnl_talk() and nfnl_listen() as deprecated
functions. The replacements nfnl_query() and nfnl_process() should
be used instead.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h
index 10b6478..f689ab0 100644
--- a/include/libnfnetlink/libnfnetlink.h
+++ b/include/libnfnetlink/libnfnetlink.h
@@ -77,15 +77,15 @@ extern int nfnl_sendiov(const struct nfnl_handle *nfnlh,
extern void nfnl_fill_hdr(struct nfnl_subsys_handle *, struct nlmsghdr *,
unsigned int, u_int8_t, u_int16_t, u_int16_t,
u_int16_t);
-extern int nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t,
- unsigned, struct nlmsghdr *,
- int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *),
- void *);
+extern __attribute__((deprecated)) int
+nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t,
+ unsigned, struct nlmsghdr *,
+ int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *);
/* simple challenge/response */
-extern int nfnl_listen(struct nfnl_handle *,
- int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *),
- void *);
+extern __attribute__((deprecated)) int
+nfnl_listen(struct nfnl_handle *,
+ int (*)(struct sockaddr_nl *, struct nlmsghdr *, void *), void *);
/* receiving */
extern ssize_t nfnl_recv(const struct nfnl_handle *h, unsigned char *buf, size_t len);
More information about the netfilter-cvslog
mailing list