]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Use the rule ifindex as a hash key, not ifp
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 15 Oct 2019 18:50:10 +0000 (14:50 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 15 Oct 2019 19:03:46 +0000 (15:03 -0400)
commitb77a69bdc601133612d89cb5e389f014d3e68970
tree1c1cfa729bf82db50d88c5836c778f3428f7e7d7
parent3dabc387a6f846debc944eb42bcab34cdee67d9b
zebra: Use the rule ifindex as a hash key, not ifp

Use the ifindex value as a primary hash key/identifier, not
the ifp pointer. It is possible for that data to be freed
and then we would not be able to hash and find the rule entry
anymore. Using the ifindex, we can still find the rule even
if the interface is removed.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/rule_netlink.c
zebra/zapi_msg.c
zebra/zebra_pbr.c