]> git.proxmox.com Git - mirror_frr.git/commit - lib/zclient.c
lib: enhance pbr_rule structure for zapi encode and for common usage
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 21 Mar 2018 10:55:38 +0000 (11:55 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 16 Apr 2018 12:40:43 +0000 (14:40 +0200)
commit0031a6bb2cd94066de1133f2de3a9ce079453631
tree5ff4b1f8033a5a29a756500b49142253fa56673d
parented78b7c8251277bebbd5780e32d5bff3fb072751
lib: enhance pbr_rule structure for zapi encode and for common usage

The pbr_rule structure is derived from zebra_pbr_rule, and is
defined, so that a zclient will be able to encode the zebra_pbr_rule to
send ADD_RULE or DEL_RULE command. Also, the same structure can be used
by other daemons to derive a structure ( this will be the case for
zebra_pbr_rule).
Adding to this, an encoding function is defined, and will be used by
remote daemon to encode that message.
Those definitions are moved in new file pbr.h file.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/pbr.h [new file with mode: 0644]
lib/subdir.am
lib/zclient.c
lib/zclient.h