Preparation to attach expressions to set elements: add a set extension type to hold an expression and dump the expression information with the set element.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -322,6 +322,7 @@ enum nft_set_elem_flags { · 321 unmodified lines | ||
| 322 | 322 | * @NFTA_SET_ELEM_TIMEOUT: timeout value (NLA_U64) |
| 323 | 323 | * @NFTA_SET_ELEM_EXPIRATION: expiration time (NLA_U64) |
| 324 | 324 | * @NFTA_SET_ELEM_USERDATA: user data (NLA_BINARY) |
| 325 | + * @NFTA_SET_ELEM_EXPR: expression (NLA_NESTED: nft_expr_attributes) | |
| 325 | 326 | */ |
| 326 | 327 | enum nft_set_elem_attributes { |
| 327 | 328 | NFTA_SET_ELEM_UNSPEC, |
| @@ -331,6 +332,7 @@ enum nft_set_elem_attributes { · 3 unmodified lines | ||
| 331 | 332 | NFTA_SET_ELEM_TIMEOUT, |
| 332 | 333 | NFTA_SET_ELEM_EXPIRATION, |
| 333 | 334 | NFTA_SET_ELEM_USERDATA, |
| 335 | + NFTA_SET_ELEM_EXPR, | |
| 334 | 336 | __NFTA_SET_ELEM_MAX |
| 335 | 337 | }; |
| 336 | 338 | #define NFTA_SET_ELEM_MAX (__NFTA_SET_ELEM_MAX - 1) |