diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-29 18:21:54 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-30 17:32:10 +0200 |
commit | b870b949470af0b1b578590b38efdd80048b539e (patch) | |
tree | 21fbd7c71aa63e3a95b0d4be80d56664b17b2cb7 /src/meta.c | |
parent | de2ebd0e1d43361ecd879170b40bac76a503aa65 (diff) |
src: add dup statement support
This allows you to clone packets to destination address, eg.
... dup to 172.20.0.2
... dup to 172.20.0.2 device eth1
... dup to ip saddr map { 192.168.0.2 : 172.20.0.2, ... } device eth1
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/meta.c')
-rw-r--r-- | src/meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ static struct error_record *ifindex_type_parse(const struct expr *sym, return NULL; } -static const struct datatype ifindex_type = { +const struct datatype ifindex_type = { .type = TYPE_IFINDEX, .name = "iface_index", .desc = "network interface index", |