[PATCH nft] expr: update EXPR_MAX and add missing comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



WHen flagcmp and catchall expressions got added the EXPR_MAX definition
wasn't changed.

Should have no impact in practice however, this value is only checked to
prevent crash when old nft release is used to list a ruleset generated
by a newer nft release and a unknown 'typeof' expression.

Signed-off-by: Florian Westphal <fw@xxxxxxxxx>
---
 include/expression.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/expression.h b/include/expression.h
index cf7319b65e0e..547073836833 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -41,6 +41,10 @@
  * @EXPR_NUMGEN:	number generation expression
  * @EXPR_HASH:		hash expression
  * @EXPR_RT:		routing expression
+ * @EXPR_FIB		forward information base expression
+ * @EXPR_XFRM		XFRM (ipsec) expression
+ * @EXPR_SET_ELEM_CATCHALL catchall element expression
+ * @EXPR_FLAGCMP	flagcmp expression
  */
 enum expr_types {
 	EXPR_INVALID,
@@ -74,7 +78,7 @@ enum expr_types {
 	EXPR_SET_ELEM_CATCHALL,
 	EXPR_FLAGCMP,
 };
-#define EXPR_MAX EXPR_XFRM
+#define EXPR_MAX EXPR_FLAGCMP
 
 enum ops {
 	OP_INVALID,
-- 
2.35.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux