From e53b6fdacea2c4b68c0932804546cf10babfb43e Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 14 Dec 2020 17:53:47 +0100 Subject: set_elem: Use nftnl_data_reg_snprintf() Introduce a flag to allow toggling the '0x' prefix when printing data values, then use the existing routines to print data registers from set_elem code. Signed-off-by: Phil Sutter --- include/data_reg.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/data_reg.h') diff --git a/include/data_reg.h b/include/data_reg.h index d9578aa..0d6b778 100644 --- a/include/data_reg.h +++ b/include/data_reg.h @@ -13,6 +13,10 @@ enum { DATA_CHAIN, }; +enum { + DATA_F_NOPFX = 1 << 0, +}; + union nftnl_data_reg { struct { uint32_t val[NFT_DATA_VALUE_MAXLEN / sizeof(uint32_t)]; -- cgit v1.2.3