From bc3656ad1e5b5812f916e9c9356785c06ce90936 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Wed, 8 Jan 2014 13:02:15 +0000 Subject: expr: replace PAYLOAD_PROTOCOL_EXPR by generic flag Introduce a generic flag to indicate that an expression describes the upper layer protocol as replacement for the payload specific flag. Signed-off-by: Patrick McHardy --- include/expression.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/expression.h') diff --git a/include/expression.h b/include/expression.h index f0eb7993..d8f28682 100644 --- a/include/expression.h +++ b/include/expression.h @@ -135,12 +135,14 @@ struct expr_ops { * * @EXPR_F_CONSTANT: constant expression * @EXPR_F_SINGLETON: singleton (implies primary and constant) + * @EXPR_F_PROTOCOL: expressions describes upper layer protocol * @EXPR_F_INTERVAL_END: set member ends an open interval */ enum expr_flags { EXPR_F_CONSTANT = 0x1, EXPR_F_SINGLETON = 0x2, - EXPR_F_INTERVAL_END = 0x4, + EXPR_F_PROTOCOL = 0x4, + EXPR_F_INTERVAL_END = 0x8, }; #include @@ -227,7 +229,6 @@ struct expr { const struct payload_template *tmpl; enum payload_bases base; unsigned int offset; - unsigned int flags; } payload; struct { /* EXPR_EXTHDR */ -- cgit v1.2.3