view components/quagga/patches/45-bgpd-capab-typo.patch @ 417:7c10b5cba79b

7066915 Move Quagga to Userland PSARC 2008/038 Move quagga files from /usr/sfw to /usr 6636788 quagga files should move from /usr/sfw 6610234 Pre-quagga start/stop scripts in /usr/sfw/sbin (bgpdstart,ospfdstart,etc..) should be removed 7064040 quagga smf start method no longer needs to worry about upgrade from SUNWzerbra 7027236 ospfd should allow the -a option to be set in smf 7066821 quaggaadm usage message gives program name as quaggaadm_usage instead of quaggaadm. 6933282 quagga manual pages need to be adjusted for the new IPS package names. 6615038 quaagadm: there is no usage info for the -e option 7002951 quagga pkg should deliver headers to allow users to build OSPF-API client programs
author Brian Utterback <Brian.Utterback@Oracle.COM>
date Mon, 18 Jul 2011 12:08:25 -0700
parents
children
line wrap: on
line source

commit 7b87b33fa53254f14b79e95bb8a0b24f8ef9e1c1
Author: Paul Jakma <paul.jakma@sun.com>
Date:   Mon Sep 17 13:51:28 2007 +0100

    [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.
    	* tests/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.

--- bgpd/bgp_open.c
+++ 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;