]> 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 15:41:59 +0000 (19:41 +0400)
commit1727d2e2b939c8670d0f0e0d1a0e5eb0a8be2135
tree3bdfda661f96113d61eae25059608d468a8ea4cc
parent17e52061bacec93e84324b23382e5ec61e1f16d0
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