diff options
author | Phil Sutter <phil@nwl.cc> | 2020-12-14 17:53:47 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-12-15 11:14:15 +0100 |
commit | e53b6fdacea2c4b68c0932804546cf10babfb43e (patch) | |
tree | e8c791b6a38e92ac976e31b3076f6f00db9efd28 /include/data_reg.h | |
parent | 8fbc98c6b97679171a5af782df86035615c5b8f0 (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/data_reg.h')
-rw-r--r-- | include/data_reg.h | 4 |
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)]; |