From be4fb61b6e85a218879adda4e41abec8909d5653 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 17 Jan 2011 00:11:46 +0100 Subject: conntrack: deprecate nfct_sizeof() and nfct_maxsize() functions These functions are evil since they allow the use of memcpy() instead of nfct_copy(). This is a problem because it violates the design principle that the library follows, that is to provide opaque objects in which the client code does not care on the binary layout. Signed-off-by: Pablo Neira Ayuso --- include/libnetfilter_conntrack/libnetfilter_conntrack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/libnetfilter_conntrack/libnetfilter_conntrack.h') diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack.h b/include/libnetfilter_conntrack/libnetfilter_conntrack.h index b3e6758..5fe2bc7 100644 --- a/include/libnetfilter_conntrack/libnetfilter_conntrack.h +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack.h @@ -199,10 +199,10 @@ extern void nfct_destroy(struct nf_conntrack *ct); struct nf_conntrack *nfct_clone(const struct nf_conntrack *ct); /* object size */ -extern size_t nfct_sizeof(const struct nf_conntrack *ct); +extern __attribute__((deprecated)) size_t nfct_sizeof(const struct nf_conntrack *ct); /* maximum object size */ -extern size_t nfct_maxsize(void); +extern __attribute__((deprecated)) size_t nfct_maxsize(void); /* set option */ enum { -- cgit v1.2.3