]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: rip out bgp_attr_deep_dup(), fix table-map
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 7 Sep 2017 13:19:06 +0000 (15:19 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 7 Sep 2017 13:19:06 +0000 (15:19 +0200)
commitb4cb15c6670f649b62595793857f794fad41f884
treeaef113cbeda13d760e1e7ce3e69df5836ce24339
parent7c87afac92b94cd26c1a74df0e499a7a05603aa7
bgpd: rip out bgp_attr_deep_dup(), fix table-map

bgp_attr_deep_dup is based on a misunderstanding of how route-maps work.
They never change actual data, just pointers & fields in "struct attr".
The correct thing to do is copy struct attr and call bgp_attr_flush()
afterwards.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_attr.c
bgpd/bgp_attr.h
bgpd/bgp_zebra.c