diff options
Diffstat (limited to 'include/data_reg.h')
-rw-r--r-- | include/data_reg.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/data_reg.h b/include/data_reg.h index 10517ba..946354d 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)]; @@ -21,16 +25,16 @@ union nftnl_data_reg { struct { uint32_t verdict; const char *chain; + uint32_t chain_id; }; }; int nftnl_data_reg_snprintf(char *buf, size_t size, const union nftnl_data_reg *reg, - uint32_t output_format, uint32_t flags, - int reg_type); + uint32_t flags, int reg_type); struct nlattr; int nftnl_parse_data(union nftnl_data_reg *data, struct nlattr *attr, int *type); -void nftnl_free_verdict(const union nftnl_data_reg *data); +int nftnl_data_cpy(union nftnl_data_reg *dreg, const void *src, uint32_t len); #endif |