summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorPablo M. Bermudo Garay <pablombg@gmail.com>2016-05-31 12:37:06 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-05-31 12:42:05 +0200
commit69da3095ea38b42e068bab063b046a5016409d6a (patch)
tree856ba437f543924c7bac8b15b5fde836d71f79dd /src/scanner.l
parentaef75641d196ddc199df35092823f178b998a6a3 (diff)
src: add 'list maps' support
This commit adds a new command that lists maps: # nft list maps [family] Only the declaration is displayed. If no family is specified, all maps of all families are listed. Example: # nft list maps table ip filter { map test { type ipv4_addr : inet_service } } table ip6 filter { map test { type ipv6_addr : inet_service } } Signed-off-by: Pablo M. Bermudo Garay <pablombg@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index b0221145..88669d0e 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -245,6 +245,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"set" { return SET; }
"element" { return ELEMENT; }
"map" { return MAP; }
+"maps" { return MAPS; }
"handle" { return HANDLE; }
"ruleset" { return RULESET; }