]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_dump.c
bgpd: use peer->ifp->ifindex instead of peer->ifindex
authorDaniel Walton <dwalton@cumulusnetworks.com>
Mon, 26 Feb 2018 22:13:22 +0000 (22:13 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Mon, 26 Feb 2018 22:13:22 +0000 (22:13 +0000)
commit194a4f2c5c7f1fd1ea93e97d71bb841ac08947a4
tree77d17f24a9f18687b82fce88f471ccad5f61ea1a
parent8d056acc82e16b83a56d82960e1d3f3dfbabfef9
bgpd: use peer->ifp->ifindex instead of peer->ifindex

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
peer->ifindex was only used in two places but it was never populated so
neither of them worked as they should.  'struct peer' also has a 'struct
interface' pointer which we can use to get the ifindex.
bgpd/bgp_dump.c
bgpd/bgp_mpath.c
bgpd/bgpd.c
bgpd/bgpd.h