diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-04-25 18:34:27 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-25 15:49:38 +0200 |
commit | f80ec7e3d630cbe3adfbb393c2fc7b11ee73d5fd (patch) | |
tree | f78735b6dcb00937f3437d8218273486bf8e6b77 /zebra/zebra_pbr.h | |
parent | zebra: add 3 fields to ipset_entry : src,dst port, and proto (diff) | |
download | frr-f80ec7e3d630cbe3adfbb393c2fc7b11ee73d5fd.tar.xz frr-f80ec7e3d630cbe3adfbb393c2fc7b11ee73d5fd.zip |
zebra: handle iptable list of interfaces
Upon reception of an iptable_add or iptable_del, a list of interface
indexes may be passed in the zapi interface. The list is converted in
interface name so that it is ready to be passed to be programmed to the
underlying system.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_pbr.h')
-rw-r--r-- | zebra/zebra_pbr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zebra_pbr.h b/zebra/zebra_pbr.h index ea1523555..f5a5d5d29 100644 --- a/zebra/zebra_pbr.h +++ b/zebra/zebra_pbr.h @@ -131,6 +131,10 @@ struct zebra_pbr_iptable { uint32_t action; + uint32_t nb_interface; + + struct list *interface_name_list; + char ipset_name[ZEBRA_IPSET_NAME_SIZE]; }; @@ -219,5 +223,7 @@ extern int zebra_pbr_iptable_hash_equal(const void *arg1, const void *arg2); extern void zebra_pbr_init(void); extern void zebra_pbr_show_ipset_list(struct vty *vty, char *ipsetname); extern void zebra_pbr_show_iptable(struct vty *vty); +extern void zebra_pbr_iptable_update_interfacelist(struct stream *s, + struct zebra_pbr_iptable *zpi); #endif /* _ZEBRA_PBR_H */ |