[bgpd] Fix typo, which prevented advertisement of MP (non-IPv4) prefixes
2007-09-17 Paul Jakma <paul.jakma@sun.com>
* bgp_open.c: (bgp_capability_mp) We were setting
afc_nego[safi][safi] rather than afc_nego[afi][safi], thus
failling to announce any non-IPv4 prefixes. Remove the extra,
typo-ed character.
* bgp_capability_test.c: Test that peer's adv_recv and adv_nego get
set correctly for MP capability and given AFI/SAFI.
Colour OK/failed result so it's easier to find them.
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index d4f7cdf..cd23577 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -177,7 +177,7 @@
peer->afc_recv[mpc.afi][mpc.safi] = 1;
if (peer->afc[mpc.afi][mpc.safi])
- peer->afc_nego[mpc.safi][mpc.safi] = 1;
+ peer->afc_nego[mpc.afi][mpc.safi] = 1;
else
return -1;