]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_pbr.c
zebra: adapt zebra_pbr_rule based with pbr_rule
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 21 Mar 2018 10:59:02 +0000 (11:59 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 16 Apr 2018 12:40:43 +0000 (14:40 +0200)
commit5dd0722dcf41c0baa2834cd23cd64a4dd6100724
tree49d6f07ff05f0383bdc7a67c436a49eab88b7c03
parent0031a6bb2cd94066de1133f2de3a9ce079453631
zebra: adapt zebra_pbr_rule based with pbr_rule

In order to avoid duplicates functions, the zebra_pbr_rule structure
used by zebra to decode the zapi message, and send netlink messages, is
slightly modified. the structure is derived from pbr_rule, but it also
includes sock identifier that is used to send back information to the
daemon that did the request. Also, the ifp pointer is stored in that
structure.

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