components/quagga/patches/45-bgpd-capab-typo.patch
changeset 641 719d637aca9f
parent 640 4afec94b6313
child 642 817474c3c772
equal deleted inserted replaced
640:4afec94b6313 641:719d637aca9f
     1 commit 7b87b33fa53254f14b79e95bb8a0b24f8ef9e1c1
       
     2 Author: Paul Jakma <[email protected]>
       
     3 Date:   Mon Sep 17 13:51:28 2007 +0100
       
     4 
       
     5     [bgpd] Fix typo, which prevented advertisement of MP (non-IPv4) prefixes
       
     6     
       
     7     2007-09-17 Paul Jakma <[email protected]>
       
     8     
       
     9     	* bgp_open.c: (bgp_capability_mp) We were setting
       
    10     	  afc_nego[safi][safi] rather than afc_nego[afi][safi], thus
       
    11     	  failling to announce any non-IPv4 prefixes. Remove the extra,
       
    12     	  typo-ed character.
       
    13     	* tests/bgp_capability_test.c: Test that peer's adv_recv and
       
    14     	  adv_nego get set correctly for MP capability and given AFI/SAFI.
       
    15     	  Colour OK/failed result so it's easier to find them.
       
    16 
       
    17 --- bgpd/bgp_open.c
       
    18 +++ bgpd/bgp_open.c
       
    19 @@ -177,7 +177,7 @@ bgp_capability_mp (struct peer *peer, struct capability_header *hdr)
       
    20    peer->afc_recv[mpc.afi][mpc.safi] = 1;
       
    21    
       
    22    if (peer->afc[mpc.afi][mpc.safi])
       
    23 -    peer->afc_nego[mpc.safi][mpc.safi] = 1;
       
    24 +    peer->afc_nego[mpc.afi][mpc.safi] = 1;
       
    25    else 
       
    26      return -1;
       
    27