summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-12-14 17:53:47 +0100
committerPhil Sutter <phil@nwl.cc>2020-12-15 11:14:15 +0100
commite53b6fdacea2c4b68c0932804546cf10babfb43e (patch)
treee8c791b6a38e92ac976e31b3076f6f00db9efd28 /include
parent8fbc98c6b97679171a5af782df86035615c5b8f0 (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'include')
-rw-r--r--include/data_reg.h4
1 files changed, 4 insertions, 0 deletions
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)];