From 3fdc7541fba079f9626bcb1605368a7da3a8d81a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 26 Oct 2019 13:15:10 +0200 Subject: src: add multidevice support for netdev chain This patch allows you to specify multiple netdevices to be bound to the netdev basechain, eg. # nft add chain netdev x y { \ type filter hook ingress devices = { eth0, eth1 } priority 0\; } json codebase has been updated to support for one single device with the existing representation, no support for multidevice is included in this patch. Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/rule.h b/include/rule.h index 2708cbeb..ba40db88 100644 --- a/include/rule.h +++ b/include/rule.h @@ -208,7 +208,9 @@ struct chain { struct prio_spec priority; struct expr *policy; const char *type; - const char *dev; + const char **dev_array; + struct expr *dev_expr; + int dev_array_len; struct scope scope; struct list_head rules; }; -- cgit v1.2.3