]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_pbr.c
zebra: add IPTABLE_ADD and IPTABLE_DEL commands in zapi
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 12 Mar 2018 08:23:48 +0000 (09:23 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 16 Apr 2018 12:40:43 +0000 (14:40 +0200)
commit7abd6c4fa0331bc6a416c69080218457f9efc90f
treed6e0fdfceebd71c106b608fc66d9b24df40c3228
parent1907e4b80b03dbaea9cb13eb4b52b33d1b9d30d3
zebra: add IPTABLE_ADD and IPTABLE_DEL commands in zapi

Those messages permit a remote daemon to configure an iptable entry. A
structure is defined that maps to an iptable entry. More specifically,
this structure proposes to associate fwmark, and a table ID.
Adding to the configuration, the initialisation of iptables hash list is
done into zebra netnamespace. Also a hook for notifying the sender that
the iptables has been correctly set is done.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/zclient.h
zebra/zebra_ns.c
zebra/zebra_ns.h
zebra/zebra_pbr.c
zebra/zebra_pbr.h
zebra/zserv.c
zebra/zserv.h