The _until_ attribute is renamed to _modulus_ as the behaviour is similar to other expresions with number limits (ex. nft_hash). Renaming is possible because there isn't a kernel release yet with these changes.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -1126,13 +1126,13 @@ enum nft_trace_types { · 1125 unmodified lines | |||
| 1126 | * enum nft_ng_attributes - nf_tables number generator expression netlink attributes | 1126 | * enum nft_ng_attributes - nf_tables number generator expression netlink attributes |
| 1127 | * | 1127 | * |
| 1128 | * @NFTA_NG_DREG: destination register (NLA_U32) | 1128 | * @NFTA_NG_DREG: destination register (NLA_U32) |
| 1129 | * @NFTA_NG_UNTIL: source value to increment the counter until reset (NLA_U32) | 1129 | * @NFTA_NG_MODULUS: maximum counter value (NLA_U32) |
| 1130 | * @NFTA_NG_TYPE: operation type (NLA_U32) | 1130 | * @NFTA_NG_TYPE: operation type (NLA_U32) |
| 1131 | */ | 1131 | */ |
| 1132 | enum nft_ng_attributes { | 1132 | enum nft_ng_attributes { |
| 1133 | NFTA_NG_UNSPEC, | 1133 | NFTA_NG_UNSPEC, |
| 1134 | NFTA_NG_DREG, | 1134 | NFTA_NG_DREG, |
| 1135 | NFTA_NG_UNTIL, | 1135 | NFTA_NG_MODULUS, |
| 1136 | NFTA_NG_TYPE, | 1136 | NFTA_NG_TYPE, |
| 1137 | __NFTA_NG_MAX | 1137 | __NFTA_NG_MAX |
| 1138 | }; | 1138 | }; |