]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix update-source for IPv6 (BZ#548)
authorDavid Lamparter <equinox@diac24.net>
Tue, 2 Feb 2010 19:18:23 +0000 (20:18 +0100)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 21 Nov 2011 14:23:24 +0000 (18:23 +0400)
commit5d3c53b9995dd9cbfa08edfcb03a2dcb47b170f4
tree5183c572f3b81b649bb4f2195d7ad47231de16c7
parent188506f4c618626e3da2c1e657100315f49664ee
bgpd: fix update-source for IPv6 (BZ#548)

if update-source was given as interface name, bgpd was unconditionally
trying to bind to an IPv4 address from that interface.

change function to find the best-matching (number of address bits)
same-family address on the interface.
bgpd/bgp_network.c