diff options
author | Paul Jakma <paul.jakma@sun.com> | 2007-09-18 12:11:26 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2007-09-18 12:11:26 +0000 |
commit | e08286bcf8a73d1922b0464bef52c1b27eda7c43 (patch) | |
tree | 8b590fbc547455b133deab93b1e43cd532ee2a71 /bgpd | |
parent | fb31c0fea38c863ddcda56f46c36f065340b9e32 (diff) |
[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.
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/ChangeLog | 7 | ||||
-rw-r--r-- | bgpd/bgp_open.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index 7542df78..c98485b4 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,10 @@ +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. + 2007-09-07 Paul Jakma <paul.jakma@sun.com> * (general) bgpd can be made crash by remote peers if debug diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index d4f7cdf5..cd235770 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -177,7 +177,7 @@ bgp_capability_mp (struct peer *peer, struct capability_header *hdr) 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; |