]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_dplane.c
zebra: fix flowspec ipset operations
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 28 Oct 2021 11:42:57 +0000 (13:42 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 3 Nov 2021 16:17:08 +0000 (17:17 +0100)
commit8f065cd36fcf73b949cd1e25756c58da357d1e18
tree49cf2feda003727812a03db9ca429f97fa46da02
parent91ee7e737b279199c7c7c58e2371f90e5a6a8e7e
zebra: fix flowspec ipset operations

When injecting an ipset entry into the zebra dataplane context, the
ipset name is stored in a separate structure. This will permit the
flowspec plugin to be able to know which ipset has to be appended with
relevant ipset entry.
The problem was that the zebra dataplane objects related to ipset entries
is made up of an union between the ipset structure and the ipset info
structure. This was implying that the two structures were on the same
memory zone, and when extracting the data stored, the data were incomplete.

Fix this by replacing the union structure by a defined struct.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_dplane.c