diff options
author | Phil Sutter <phil@nwl.cc> | 2019-10-30 18:31:59 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-31 14:57:08 +0100 |
commit | 7349a70634fa02838aea33be0ff1b5491ac8dee9 (patch) | |
tree | c73d2368cc72cfca021f89d0c143daa869604d93 /include/libnftnl/gen.h | |
parent | 3c1a1779cb0d2725521e8411903d37b1aebd956c (diff) |
Deprecate untyped data setters
These functions make assumptions on size of passed data pointer and
therefore tend to hide programming mistakes. Instead either one of the
type-specific setters or the generic *_set_data() setter should be used.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/gen.h')
-rw-r--r-- | include/libnftnl/gen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnftnl/gen.h b/include/libnftnl/gen.h index c56a63c..846b8e0 100644 --- a/include/libnftnl/gen.h +++ b/include/libnftnl/gen.h @@ -25,7 +25,7 @@ enum { bool nftnl_gen_is_set(const struct nftnl_gen *gen, uint16_t attr); void nftnl_gen_unset(struct nftnl_gen *gen, uint16_t attr); -int nftnl_gen_set(struct nftnl_gen *gen, uint16_t attr, const void *data); +int nftnl_gen_set(struct nftnl_gen *gen, uint16_t attr, const void *data) __attribute__((deprecated)); int nftnl_gen_set_data(struct nftnl_gen *gen, uint16_t attr, const void *data, uint32_t data_len); const void *nftnl_gen_get(const struct nftnl_gen *gen, uint16_t attr); |