From 7349a70634fa02838aea33be0ff1b5491ac8dee9 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 30 Oct 2019 18:31:59 +0100 Subject: 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 Acked-by: Pablo Neira Ayuso --- include/libnftnl/flowtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libnftnl/flowtable.h') diff --git a/include/libnftnl/flowtable.h b/include/libnftnl/flowtable.h index 6f68018..028095e 100644 --- a/include/libnftnl/flowtable.h +++ b/include/libnftnl/flowtable.h @@ -33,7 +33,7 @@ enum nftnl_flowtable_attr { bool nftnl_flowtable_is_set(const struct nftnl_flowtable *c, uint16_t attr); void nftnl_flowtable_unset(struct nftnl_flowtable *c, uint16_t attr); -void nftnl_flowtable_set(struct nftnl_flowtable *t, uint16_t attr, const void *data); +void nftnl_flowtable_set(struct nftnl_flowtable *t, uint16_t attr, const void *data) __attribute__((deprecated)); int nftnl_flowtable_set_data(struct nftnl_flowtable *t, uint16_t attr, const void *data, uint32_t data_len); void nftnl_flowtable_set_u32(struct nftnl_flowtable *t, uint16_t attr, uint32_t data); -- cgit v1.2.3