diff options
author | Patrick McHardy <kaber@trash.net> | 2014-01-08 13:02:16 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-01-08 13:03:19 +0000 |
commit | 4180fba3821d13f06fde2d662d7000e99d140693 (patch) | |
tree | 3e097a6b44d24765ff7a9c842915eb9e0a7398f6 /src/parser.y | |
parent | b90667a2ae941d2b79630d0344ef489c2bf9d9aa (diff) |
meta: add nfproto support
Add support for the meta nfproto type, which refers to the AF from the
netfilter hook ops. This is needed to get the actual family of a packet
in the dummy NFPROTO_INET family.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.y b/src/parser.y index 19073337..aed00c7f 100644 --- a/src/parser.y +++ b/src/parser.y @@ -281,6 +281,7 @@ static void location_update(struct location *loc, struct location *rhs, int n) %token MH "mh" %token META "meta" +%token NFPROTO "nfproto" %token MARK "mark" %token IIF "iif" %token IIFNAME "iifname" @@ -1376,6 +1377,7 @@ meta_expr : META meta_key ; meta_key : LENGTH { $$ = NFT_META_LEN; } + | NFPROTO { $$ = NFT_META_NFPROTO; } | PROTOCOL { $$ = NFT_META_PROTOCOL; } | PRIORITY { $$ = NFT_META_PRIORITY; } | MARK { $$ = NFT_META_MARK; } |