[packages] quagga: Refresh patches
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 13 Jul 2012 16:40:43 +0000 (16:40 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 13 Jul 2012 16:40:43 +0000 (16:40 +0000)
git-svn-id: svn+ssh://svn.openwrt.org/openwrt@32703 3c298f89-4303-0410-b956-a3cf2f4a3e73

patches/005-zebra-connected-in-mrib.patch
patches/006-fix-no-ipv6.patch
patches/007-drop-heuristic-ipv6-recognition.patch
patches/008-fix-thread_cancel_event.patch
patches/009-bgpd-fix-vpn4-soft-reconfiguration.patch
patches/010-bgpd-fix-struct-attr_extra-leak.patch
patches/011-isisd-fix-typo.patch
patches/120-quagga_manet.patch
patches/150-no-cross-fs-link.patch
patches/160-pgbgp.patch
patches/161-pgbgp-addon.patch

index ba743176e6abd45c787bc82c576f6e46723f0f2c..6d0a868942b9f76023846cb318b779c887744f69 100644 (file)
@@ -1,7 +1,5 @@
-Index: quagga-0.99.21/zebra/connected.c
-===================================================================
---- quagga-0.99.21.orig/zebra/connected.c
-+++ quagga-0.99.21/zebra/connected.c
+--- a/zebra/connected.c
++++ b/zebra/connected.c
 @@ -191,6 +191,9 @@ connected_up_ipv4 (struct interface *ifp
    rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, NULL, ifp->ifindex,
        RT_TABLE_MAIN, ifp->metric, 0, SAFI_UNICAST);
index 3ce2633b9e4b295c4b5c8a6b9dcfd54fe6a47042..f39c453cd02bcc911cfe996449120432f474882e 100644 (file)
@@ -1,7 +1,5 @@
-Index: quagga-0.99.21/zebra/main.c
-===================================================================
---- quagga-0.99.21.orig/zebra/main.c
-+++ quagga-0.99.21/zebra/main.c
+--- a/zebra/main.c
++++ b/zebra/main.c
 @@ -327,7 +327,9 @@ main (int argc, char **argv)
    zebra_vty_init ();
    access_list_init ();
@@ -12,10 +10,8 @@ Index: quagga-0.99.21/zebra/main.c
  #ifdef HAVE_IRDP
    irdp_init();
  #endif
-Index: quagga-0.99.21/zebra/rtadv.h
-===================================================================
---- quagga-0.99.21.orig/zebra/rtadv.h
-+++ quagga-0.99.21/zebra/rtadv.h
+--- a/zebra/rtadv.h
++++ b/zebra/rtadv.h
 @@ -26,6 +26,9 @@
  #include "vty.h"
  #include "zebra/interface.h"
@@ -33,10 +29,8 @@ Index: quagga-0.99.21/zebra/rtadv.h
 +#endif /* RTADV */
 +
  #endif /* _ZEBRA_RTADV_H */
-Index: quagga-0.99.21/zebra/zebra_vty.c
-===================================================================
---- quagga-0.99.21.orig/zebra/zebra_vty.c
-+++ quagga-0.99.21/zebra/zebra_vty.c
+--- a/zebra/zebra_vty.c
++++ b/zebra/zebra_vty.c
 @@ -1197,6 +1197,40 @@ DEFUN (show_ip_protocol,
      return CMD_SUCCESS;
  }
index 1a0e6f4c2f635fd419cfa197a41a4ca4e17a78a8..1b49d7bbc1dd426bcd85b5da772d31ade67286a9 100644 (file)
@@ -1,7 +1,5 @@
-Index: quagga-0.99.21/lib/command.c
-===================================================================
---- quagga-0.99.21.orig/lib/command.c
-+++ quagga-0.99.21/lib/command.c
+--- a/lib/command.c
++++ b/lib/command.c
 @@ -868,86 +868,7 @@ cmd_ipv6_match (const char *str)
    if (ret == 1)
      return exact_match;
index 45f314d58332edf99577b20f0d3b08b7667f721b..3dcb9f5e794e4a028e46b93af577c3a6be40b8ed 100644 (file)
@@ -1,7 +1,5 @@
-Index: quagga-0.99.21/lib/thread.c
-===================================================================
---- quagga-0.99.21.orig/lib/thread.c
-+++ quagga-0.99.21/lib/thread.c
+--- a/lib/thread.c
++++ b/lib/thread.c
 @@ -916,6 +916,24 @@ thread_cancel_event (struct thread_maste
            thread_add_unuse (m, t);
          }
index 4a9cac0f886ff39d409986d1efb8c8ca9dae8940..d8efa723258e331eb9ba3ce996997dd42ad4b303 100644 (file)
@@ -1,7 +1,5 @@
-Index: quagga-0.99.21/bgpd/bgp_route.c
-===================================================================
---- quagga-0.99.21.orig/bgpd/bgp_route.c
-+++ quagga-0.99.21/bgpd/bgp_route.c
+--- a/bgpd/bgp_route.c
++++ b/bgpd/bgp_route.c
 @@ -2616,7 +2616,7 @@ bgp_announce_route_all (struct peer *pee
  \f
  static void
index 58415061965d27155f604a8d23d8d33354bb6b08..8f824bfb6368d12686f68df5e326856e39e0f32a 100644 (file)
@@ -1,7 +1,5 @@
-Index: quagga-0.99.21/bgpd/bgp_route.c
-===================================================================
---- quagga-0.99.21.orig/bgpd/bgp_route.c
-+++ quagga-0.99.21/bgpd/bgp_route.c
+--- a/bgpd/bgp_route.c
++++ b/bgpd/bgp_route.c
 @@ -2485,12 +2485,8 @@ bgp_default_originate (struct peer *peer
  #ifdef HAVE_IPV6
    else if (afi == AFI_IP6)
index e7a15100857f677e87a82623a0715a5844f01534..142c8af9de54563fa683765ffe17c1e1155ad8ee 100644 (file)
@@ -1,7 +1,5 @@
-Index: quagga-0.99.21/isisd/isis_lsp.c
-===================================================================
---- quagga-0.99.21.orig/isisd/isis_lsp.c
-+++ quagga-0.99.21/isisd/isis_lsp.c
+--- a/isisd/isis_lsp.c
++++ b/isisd/isis_lsp.c
 @@ -2413,7 +2413,7 @@ top_lsp_refresh (struct thread *thread)
    isis_dynhn_insert (lsp->lsp_header->lsp_id, lsp->tlv_data.hostname,
                     IS_LEVEL_1);
index bf6d05677c038d9f15c5e9abfe8ac6ae3254d270..99e3cc7a5b961e8c2a10d729be5bb777f9d7a816 100644 (file)
        {
          time_t uptime;
          struct tm *tm;
-@@ -1536,7 +1542,10 @@ vty_show_ipv6_route_detail (struct vty *
+@@ -1570,7 +1576,10 @@ vty_show_ipv6_route_detail (struct vty *
          || rib->type == ZEBRA_ROUTE_OSPF6
          || rib->type == ZEBRA_ROUTE_BABEL
          || rib->type == ZEBRA_ROUTE_ISIS
        {
          time_t uptime;
          struct tm *tm;
-@@ -1716,7 +1725,10 @@ vty_show_ipv6_route (struct vty *vty, st
+@@ -1750,7 +1759,10 @@ vty_show_ipv6_route (struct vty *vty, st
          || rib->type == ZEBRA_ROUTE_OSPF6
          || rib->type == ZEBRA_ROUTE_BABEL
          || rib->type == ZEBRA_ROUTE_ISIS
index c3f29c35f87c0176251610f781e97ffca5f63575..2b84031d64103ec686d2f41c70f380977f9d97ea 100644 (file)
@@ -1,6 +1,6 @@
 --- a/lib/command.c
 +++ b/lib/command.c
-@@ -2601,6 +2601,13 @@ DEFUN (config_write_file,
+@@ -2522,6 +2522,13 @@ DEFUN (config_write_file,
                 VTY_NEWLINE);
          goto finished;
        }
@@ -14,7 +14,7 @@
    if (link (config_file, config_file_sav) != 0)
      {
        vty_out (vty, "Can't backup old configuration file %s.%s", config_file_sav,
-@@ -2614,7 +2621,23 @@ DEFUN (config_write_file,
+@@ -2535,7 +2542,23 @@ DEFUN (config_write_file,
                VTY_NEWLINE);
        goto finished;
      }
index fb01ee11f28033d86c9717fe8cd676eafa576e19..a8273ab9edf237f5d4e75122eab2f266d2e89d80 100644 (file)
@@ -2800,7 +2800,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
    /* Register new BGP information. */
    bgp_info_add (rn, new);
    
-@@ -5559,6 +5581,20 @@ enum bgp_display_type
+@@ -5575,6 +5597,20 @@ enum bgp_display_type
  static void
  route_vty_short_status_out (struct vty *vty, struct bgp_info *binfo)
  {
@@ -2821,7 +2821,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
   /* Route status display. */
    if (CHECK_FLAG (binfo->flags, BGP_INFO_REMOVED))
      vty_out (vty, "R");
-@@ -6064,6 +6100,7 @@ route_vty_out_detail (struct vty *vty, s
+@@ -6080,6 +6116,7 @@ route_vty_out_detail (struct vty *vty, s
  }  
  \f
  #define BGP_SHOW_SCODE_HEADER "Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,%s              r RIB-failure, S Stale, R Removed%s"
@@ -2829,7 +2829,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
  #define BGP_SHOW_OCODE_HEADER "Origin codes: i - IGP, e - EGP, ? - incomplete%s%s"
  #define BGP_SHOW_HEADER "   Network          Next Hop            Metric LocPrf Weight Path%s"
  #define BGP_SHOW_DAMP_HEADER "   Network          From             Reuse    Path%s"
-@@ -6095,7 +6132,8 @@ enum bgp_show_type
+@@ -6111,7 +6148,8 @@ enum bgp_show_type
    bgp_show_type_flap_route_map,
    bgp_show_type_flap_neighbor,
    bgp_show_type_dampend_paths,
@@ -2839,7 +2839,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
  };
  
  static int
-@@ -6262,11 +6300,17 @@ bgp_show_table (struct vty *vty, struct
+@@ -6278,11 +6316,17 @@ bgp_show_table (struct vty *vty, struct
                    || CHECK_FLAG (ri->flags, BGP_INFO_HISTORY))
                  continue;
              }
@@ -2857,7 +2857,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
                vty_out (vty, BGP_SHOW_OCODE_HEADER, VTY_NEWLINE, VTY_NEWLINE);
                if (type == bgp_show_type_dampend_paths
                    || type == bgp_show_type_damp_neighbor)
-@@ -6344,6 +6388,7 @@ bgp_show (struct vty *vty, struct bgp *b
+@@ -6360,6 +6404,7 @@ bgp_show (struct vty *vty, struct bgp *b
    return bgp_show_table (vty, table, &bgp->router_id, type, output_arg);
  }
  
@@ -2865,7 +2865,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
  /* Header of detailed BGP route information */
  static void
  route_vty_out_detail_header (struct vty *vty, struct bgp *bgp,
-@@ -11904,6 +11949,64 @@ DEFUN (bgp_damp_set,
+@@ -11932,6 +11977,64 @@ DEFUN (bgp_damp_set,
                          half, reuse, suppress, max);
  }
  
@@ -2930,7 +2930,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
  ALIAS (bgp_damp_set,
         bgp_damp_set2_cmd,
         "bgp dampening <1-45>",
-@@ -11953,6 +12056,19 @@ DEFUN (show_ip_bgp_dampened_paths,
+@@ -11981,6 +12084,19 @@ DEFUN (show_ip_bgp_dampened_paths,
                     NULL);
  }
  
@@ -2950,7 +2950,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
  DEFUN (show_ip_bgp_flap_statistics,
         show_ip_bgp_flap_statistics_cmd,
         "show ip bgp flap-statistics",
-@@ -12479,6 +12595,7 @@ bgp_route_init (void)
+@@ -12507,6 +12623,7 @@ bgp_route_init (void)
    install_element (VIEW_NODE, &show_ip_bgp_neighbor_received_prefix_filter_cmd);
    install_element (VIEW_NODE, &show_ip_bgp_ipv4_neighbor_received_prefix_filter_cmd);
    install_element (VIEW_NODE, &show_ip_bgp_dampened_paths_cmd);
@@ -2958,7 +2958,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
    install_element (VIEW_NODE, &show_ip_bgp_flap_statistics_cmd);
    install_element (VIEW_NODE, &show_ip_bgp_flap_address_cmd);
    install_element (VIEW_NODE, &show_ip_bgp_flap_prefix_cmd);
-@@ -12612,6 +12729,7 @@ bgp_route_init (void)
+@@ -12640,6 +12757,7 @@ bgp_route_init (void)
    install_element (ENABLE_NODE, &show_ip_bgp_neighbor_received_prefix_filter_cmd);
    install_element (ENABLE_NODE, &show_ip_bgp_ipv4_neighbor_received_prefix_filter_cmd);
    install_element (ENABLE_NODE, &show_ip_bgp_dampened_paths_cmd);
@@ -2966,7 +2966,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c
    install_element (ENABLE_NODE, &show_ip_bgp_flap_statistics_cmd);
    install_element (ENABLE_NODE, &show_ip_bgp_flap_address_cmd);
    install_element (ENABLE_NODE, &show_ip_bgp_flap_prefix_cmd);
-@@ -13002,6 +13120,10 @@ bgp_route_init (void)
+@@ -13030,6 +13148,10 @@ bgp_route_init (void)
    install_element (BGP_IPV4_NODE, &bgp_damp_unset_cmd);
    install_element (BGP_IPV4_NODE, &bgp_damp_unset2_cmd);
    
index 817cdb0a118d74a8c2dbbeb7b6d708c5dbfc46a1..5bcd90723f4c6be28729be46dad9aebc355d1ca5 100644 (file)
@@ -204,7 +204,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
    return 0;
 --- a/bgpd/bgp_route.c
 +++ b/bgpd/bgp_route.c
-@@ -5581,20 +5581,6 @@ enum bgp_display_type
+@@ -5597,20 +5597,6 @@ enum bgp_display_type
  static void
  route_vty_short_status_out (struct vty *vty, struct bgp_info *binfo)
  {
@@ -225,7 +225,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
   /* Route status display. */
    if (CHECK_FLAG (binfo->flags, BGP_INFO_REMOVED))
      vty_out (vty, "R");
-@@ -5610,6 +5596,17 @@ route_vty_short_status_out (struct vty *
+@@ -5626,6 +5612,17 @@ route_vty_short_status_out (struct vty *
    /* Selected */
    if (CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
      vty_out (vty, "h");
@@ -243,7 +243,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
    else if (CHECK_FLAG (binfo->flags, BGP_INFO_DAMPED))
      vty_out (vty, "d");
    else if (CHECK_FLAG (binfo->flags, BGP_INFO_SELECTED))
-@@ -6088,7 +6085,22 @@ route_vty_out_detail (struct vty *vty, s
+@@ -6104,7 +6101,22 @@ route_vty_out_detail (struct vty *vty, s
        if (binfo->extra && binfo->extra->damp_info)
        bgp_damp_info_vty (vty, binfo);
  
@@ -267,7 +267,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
  #ifdef HAVE_CLOCK_MONOTONIC
        tbuf = time(NULL) - (bgp_clock() - binfo->uptime);
        vty_out (vty, "      Last update: %s", ctime(&tbuf));
-@@ -6099,8 +6111,9 @@ route_vty_out_detail (struct vty *vty, s
+@@ -6115,8 +6127,9 @@ route_vty_out_detail (struct vty *vty, s
    vty_out (vty, "%s", VTY_NEWLINE);
  }  
  \f
@@ -279,7 +279,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
  #define BGP_SHOW_OCODE_HEADER "Origin codes: i - IGP, e - EGP, ? - incomplete%s%s"
  #define BGP_SHOW_HEADER "   Network          Next Hop            Metric LocPrf Weight Path%s"
  #define BGP_SHOW_DAMP_HEADER "   Network          From             Reuse    Path%s"
-@@ -6309,8 +6322,7 @@ bgp_show_table (struct vty *vty, struct
+@@ -6325,8 +6338,7 @@ bgp_show_table (struct vty *vty, struct
            if (header)
              {
                vty_out (vty, "BGP table version is 0, local router ID is %s%s", inet_ntoa (*router_id), VTY_NEWLINE);
@@ -289,7 +289,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
                vty_out (vty, BGP_SHOW_OCODE_HEADER, VTY_NEWLINE, VTY_NEWLINE);
                if (type == bgp_show_type_dampend_paths
                    || type == bgp_show_type_damp_neighbor)
-@@ -9842,7 +9854,7 @@ show_adj_route (struct vty *vty, struct
+@@ -9858,7 +9870,7 @@ show_adj_route (struct vty *vty, struct
                          PEER_STATUS_DEFAULT_ORIGINATE))
      {
        vty_out (vty, "BGP table version is 0, local router ID is %s%s", inet_ntoa (bgp->router_id), VTY_NEWLINE);
@@ -298,7 +298,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
        vty_out (vty, BGP_SHOW_OCODE_HEADER, VTY_NEWLINE, VTY_NEWLINE);
  
        vty_out (vty, "Originating default network 0.0.0.0%s%s",
-@@ -9859,7 +9871,7 @@ show_adj_route (struct vty *vty, struct
+@@ -9875,7 +9887,7 @@ show_adj_route (struct vty *vty, struct
              if (header1)
                {
                  vty_out (vty, "BGP table version is 0, local router ID is %s%s", inet_ntoa (bgp->router_id), VTY_NEWLINE);
@@ -307,7 +307,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=06ac72f9f6
                  vty_out (vty, BGP_SHOW_OCODE_HEADER, VTY_NEWLINE, VTY_NEWLINE);
                  header1 = 0;
                }
-@@ -9883,7 +9895,7 @@ show_adj_route (struct vty *vty, struct
+@@ -9899,7 +9911,7 @@ show_adj_route (struct vty *vty, struct
              if (header1)
                {
                  vty_out (vty, "BGP table version is 0, local router ID is %s%s", inet_ntoa (bgp->router_id), VTY_NEWLINE);