From bba8e82cd5195406ae2c8a3b4fa0e02a44ae7c98 Mon Sep 17 00:00:00 2001 From: acinonyx Date: Thu, 29 Sep 2011 23:44:31 +0000 Subject: [PATCH] [packages] quagga: Update to v0.99.20 git-svn-id: svn+ssh://svn.openwrt.org/openwrt@28319 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- Makefile | 6 +- patches/010-fix-format-warnings.patch | 22 ------ patches/020-fix-ipv6-build-failure.patch | 31 -------- patches/030-fix-opaque-support.patch | 91 ------------------------ patches/120-quagga_manet.patch | 64 ++++++++--------- patches/140-holdtimer-set.patch | 4 +- patches/150-no-cross-fs-link.patch | 4 +- patches/160-pgbgp.patch | 12 ++-- patches/161-pgbgp-addon.patch | 6 +- 9 files changed, 48 insertions(+), 192 deletions(-) delete mode 100644 patches/010-fix-format-warnings.patch delete mode 100644 patches/020-fix-ipv6-build-failure.patch delete mode 100644 patches/030-fix-opaque-support.patch diff --git a/Makefile b/Makefile index 52b74fc..645ec21 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,9 @@ ifneq ($(CONFIG_QUAGGA_OLD),) PKG_MD5SUM:=b0d4132039953a0214256873b7d23d68 PATCH_DIR:=./patches-old else - PKG_VERSION:=0.99.18 - PKG_RELEASE:=2 - PKG_MD5SUM:=59e306e93a4a1ce16760f20e9075d473 + PKG_VERSION:=0.99.20 + PKG_RELEASE:=1 + PKG_MD5SUM:=64cc29394eb8a4e24649d19dac868f64 endif PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/patches/010-fix-format-warnings.patch b/patches/010-fix-format-warnings.patch deleted file mode 100644 index ac05e17..0000000 --- a/patches/010-fix-format-warnings.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/lib/command.c -+++ b/lib/command.c -@@ -3056,7 +3056,7 @@ DEFUN (config_logmsg, - if ((level = level_match(argv[0])) == ZLOG_DISABLED) - return CMD_ERR_NO_MATCH; - -- zlog(NULL, level, ((message = argv_concat(argv, argc, 1)) ? message : "")); -+ zlog(NULL, level, "%s", ((message = argv_concat(argv, argc, 1)) ? message : "")); - if (message) - XFREE(MTYPE_TMP, message); - return CMD_SUCCESS; ---- a/lib/if.c -+++ b/lib/if.c -@@ -664,7 +664,7 @@ connected_log (struct connected *connect - strncat (logbuf, inet_ntop (p->family, &p->u.prefix, buf, BUFSIZ), - BUFSIZ - strlen(logbuf)); - } -- zlog (NULL, LOG_INFO, logbuf); -+ zlog (NULL, LOG_INFO, "%s", logbuf); - } - - /* If two connected address has same prefix return 1. */ diff --git a/patches/020-fix-ipv6-build-failure.patch b/patches/020-fix-ipv6-build-failure.patch deleted file mode 100644 index 6c3ac78..0000000 --- a/patches/020-fix-ipv6-build-failure.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/bgpd/bgp_route.c -+++ b/bgpd/bgp_route.c -@@ -4327,6 +4327,7 @@ ALIAS_DEPRECATED (no_bgp_network_mask_na - "Specify a BGP backdoor route\n" - "AS-Path hopcount limit attribute\n" - "AS-Pathlimit TTL, in number of AS-Path hops\n") -+#ifdef HAVE_IPV6 - ALIAS_DEPRECATED (ipv6_bgp_network, - ipv6_bgp_network_ttl_cmd, - "network X:X::X:X/M pathlimit <0-255>", -@@ -4342,6 +4343,7 @@ ALIAS_DEPRECATED (no_ipv6_bgp_network, - "IPv6 prefix /\n" - "AS-Path hopcount limit attribute\n" - "AS-Pathlimit TTL, in number of AS-Path hops\n") -+#endif /* HAVE_IPV6 */ - - /* Aggreagete address: - -@@ -12133,9 +12135,11 @@ bgp_route_init (void) - install_element (BGP_IPV4M_NODE, &no_bgp_network_backdoor_ttl_cmd); - install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_backdoor_ttl_cmd); - install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_natural_backdoor_ttl_cmd); -- -+ -+#ifdef HAVE_IPV6 - install_element (BGP_IPV6_NODE, &ipv6_bgp_network_ttl_cmd); - install_element (BGP_IPV6_NODE, &no_ipv6_bgp_network_ttl_cmd); -+#endif - } - - void diff --git a/patches/030-fix-opaque-support.patch b/patches/030-fix-opaque-support.patch deleted file mode 100644 index ba0081c..0000000 --- a/patches/030-fix-opaque-support.patch +++ /dev/null @@ -1,91 +0,0 @@ ---- a/ospfd/ospf_lsa.h -+++ b/ospfd/ospf_lsa.h -@@ -114,6 +114,9 @@ struct ospf_lsa - - /* Refreshement List or Queue */ - int refresh_list; -+ -+ /* For Type-9 Opaque-LSAs */ -+ struct ospf_interface *oi; - }; - - /* OSPF LSA Link Type. */ ---- a/ospfd/ospf_nsm.c -+++ b/ospfd/ospf_nsm.c -@@ -216,7 +216,7 @@ ospf_db_summary_add (struct ospf_neighbo - { - case OSPF_OPAQUE_LINK_LSA: - /* Exclude type-9 LSAs that does not have the same "oi" with "nbr". */ -- if (lsa->oi != nbr->oi) -+ if (nbr->oi && ospf_if_exists (lsa->oi) != nbr->oi) - return 0; - break; - case OSPF_OPAQUE_AREA_LSA: ---- a/ospfd/ospf_opaque.c -+++ b/ospfd/ospf_opaque.c -@@ -251,7 +251,7 @@ struct ospf_opaque_functab - void (* config_write_debug )(struct vty *vty); - void (* show_opaque_info )(struct vty *vty, struct ospf_lsa *lsa); - int (* lsa_originator)(void *arg); -- void (* lsa_refresher )(struct ospf_lsa *lsa); -+ struct ospf_lsa *(* lsa_refresher )(struct ospf_lsa *lsa); - int (* new_lsa_hook)(struct ospf_lsa *lsa); - int (* del_lsa_hook)(struct ospf_lsa *lsa); - }; -@@ -354,7 +354,7 @@ ospf_register_opaque_functab ( - void (* config_write_debug )(struct vty *vty), - void (* show_opaque_info )(struct vty *vty, struct ospf_lsa *lsa), - int (* lsa_originator)(void *arg), -- void (* lsa_refresher )(struct ospf_lsa *lsa), -+ struct ospf_lsa *(* lsa_refresher )(struct ospf_lsa *lsa), - int (* new_lsa_hook)(struct ospf_lsa *lsa), - int (* del_lsa_hook)(struct ospf_lsa *lsa)) - { -@@ -1608,12 +1608,13 @@ out: - return new; - } - --void -+struct ospf_lsa * - ospf_opaque_lsa_refresh (struct ospf_lsa *lsa) - { - struct ospf *ospf; - struct ospf_opaque_functab *functab; -- -+ struct ospf_lsa *new = NULL; -+ - ospf = ospf_lookup (); - - if ((functab = ospf_opaque_functab_lookup (lsa)) == NULL -@@ -1633,9 +1634,9 @@ ospf_opaque_lsa_refresh (struct ospf_lsa - ospf_lsa_flush (ospf, lsa); - } - else -- (* functab->lsa_refresher)(lsa); -+ new = (* functab->lsa_refresher)(lsa); - -- return; -+ return new; - } - - /*------------------------------------------------------------------------* ---- a/ospfd/ospf_opaque.h -+++ b/ospfd/ospf_opaque.h -@@ -120,7 +120,7 @@ ospf_register_opaque_functab ( - void (* config_write_debug )(struct vty *vty), - void (* show_opaque_info )(struct vty *vty, struct ospf_lsa *lsa), - int (* lsa_originator)(void *arg), -- void (* lsa_refresher )(struct ospf_lsa *lsa), -+ struct ospf_lsa *(* lsa_refresher )(struct ospf_lsa *lsa), - int (* new_lsa_hook)(struct ospf_lsa *lsa), - int (* del_lsa_hook)(struct ospf_lsa *lsa) - ); -@@ -143,7 +143,7 @@ extern void ospf_opaque_lsa_originate_sc - int *init_delay); - extern struct ospf_lsa *ospf_opaque_lsa_install (struct ospf_lsa *, - int rt_recalc); --extern void ospf_opaque_lsa_refresh (struct ospf_lsa *lsa); -+extern struct ospf_lsa *ospf_opaque_lsa_refresh (struct ospf_lsa *lsa); - - extern void ospf_opaque_lsa_reoriginate_schedule (void *lsa_type_dependent, - u_char lsa_type, diff --git a/patches/120-quagga_manet.patch b/patches/120-quagga_manet.patch index b9980ac..105dae4 100644 --- a/patches/120-quagga_manet.patch +++ b/patches/120-quagga_manet.patch @@ -1,6 +1,6 @@ --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c -@@ -8228,8 +8228,14 @@ bgp_str2route_type (int afi, const char +@@ -8399,8 +8399,14 @@ bgp_str2route_type (int afi, const char return ZEBRA_ROUTE_STATIC; else if (strncmp (str, "r", 1) == 0) return ZEBRA_ROUTE_RIP; @@ -16,7 +16,7 @@ } if (afi == AFI_IP6) { -@@ -8241,21 +8247,30 @@ bgp_str2route_type (int afi, const char +@@ -8412,21 +8418,30 @@ bgp_str2route_type (int afi, const char return ZEBRA_ROUTE_STATIC; else if (strncmp (str, "r", 1) == 0) return ZEBRA_ROUTE_RIPNG; @@ -50,7 +50,7 @@ { int type; -@@ -8270,13 +8285,16 @@ DEFUN (bgp_redistribute_ipv4, +@@ -8441,13 +8456,16 @@ DEFUN (bgp_redistribute_ipv4, DEFUN (bgp_redistribute_ipv4_rmap, bgp_redistribute_ipv4_rmap_cmd, @@ -68,7 +68,7 @@ "Route map reference\n" "Pointer to route-map entries\n") { -@@ -8295,13 +8313,16 @@ DEFUN (bgp_redistribute_ipv4_rmap, +@@ -8466,13 +8484,16 @@ DEFUN (bgp_redistribute_ipv4_rmap, DEFUN (bgp_redistribute_ipv4_metric, bgp_redistribute_ipv4_metric_cmd, @@ -86,7 +86,7 @@ "Metric for redistributed routes\n" "Default metric\n") { -@@ -8322,13 +8343,16 @@ DEFUN (bgp_redistribute_ipv4_metric, +@@ -8493,13 +8514,16 @@ DEFUN (bgp_redistribute_ipv4_metric, DEFUN (bgp_redistribute_ipv4_rmap_metric, bgp_redistribute_ipv4_rmap_metric_cmd, @@ -104,7 +104,7 @@ "Route map reference\n" "Pointer to route-map entries\n" "Metric for redistributed routes\n" -@@ -8352,13 +8376,16 @@ DEFUN (bgp_redistribute_ipv4_rmap_metric +@@ -8523,13 +8547,16 @@ DEFUN (bgp_redistribute_ipv4_rmap_metric DEFUN (bgp_redistribute_ipv4_metric_rmap, bgp_redistribute_ipv4_metric_rmap_cmd, @@ -122,7 +122,7 @@ "Metric for redistributed routes\n" "Default metric\n" "Route map reference\n" -@@ -8382,14 +8409,17 @@ DEFUN (bgp_redistribute_ipv4_metric_rmap +@@ -8553,14 +8580,17 @@ DEFUN (bgp_redistribute_ipv4_metric_rmap DEFUN (no_bgp_redistribute_ipv4, no_bgp_redistribute_ipv4_cmd, @@ -142,7 +142,7 @@ { int type; -@@ -8405,7 +8435,7 @@ DEFUN (no_bgp_redistribute_ipv4, +@@ -8576,7 +8606,7 @@ DEFUN (no_bgp_redistribute_ipv4, DEFUN (no_bgp_redistribute_ipv4_rmap, no_bgp_redistribute_ipv4_rmap_cmd, @@ -151,7 +151,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8413,6 +8443,9 @@ DEFUN (no_bgp_redistribute_ipv4_rmap, +@@ -8584,6 +8614,9 @@ DEFUN (no_bgp_redistribute_ipv4_rmap, "Open Shurtest Path First (OSPF)\n" "Routing Information Protocol (RIP)\n" "Static routes\n" @@ -161,7 +161,7 @@ "Route map reference\n" "Pointer to route-map entries\n") { -@@ -8431,7 +8464,7 @@ DEFUN (no_bgp_redistribute_ipv4_rmap, +@@ -8602,7 +8635,7 @@ DEFUN (no_bgp_redistribute_ipv4_rmap, DEFUN (no_bgp_redistribute_ipv4_metric, no_bgp_redistribute_ipv4_metric_cmd, @@ -170,7 +170,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8439,6 +8472,9 @@ DEFUN (no_bgp_redistribute_ipv4_metric, +@@ -8610,6 +8643,9 @@ DEFUN (no_bgp_redistribute_ipv4_metric, "Open Shurtest Path First (OSPF)\n" "Routing Information Protocol (RIP)\n" "Static routes\n" @@ -180,7 +180,7 @@ "Metric for redistributed routes\n" "Default metric\n") { -@@ -8457,7 +8493,7 @@ DEFUN (no_bgp_redistribute_ipv4_metric, +@@ -8628,7 +8664,7 @@ DEFUN (no_bgp_redistribute_ipv4_metric, DEFUN (no_bgp_redistribute_ipv4_rmap_metric, no_bgp_redistribute_ipv4_rmap_metric_cmd, @@ -189,7 +189,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8465,6 +8501,9 @@ DEFUN (no_bgp_redistribute_ipv4_rmap_met +@@ -8636,6 +8672,9 @@ DEFUN (no_bgp_redistribute_ipv4_rmap_met "Open Shurtest Path First (OSPF)\n" "Routing Information Protocol (RIP)\n" "Static routes\n" @@ -199,7 +199,7 @@ "Route map reference\n" "Pointer to route-map entries\n" "Metric for redistributed routes\n" -@@ -8486,7 +8525,7 @@ DEFUN (no_bgp_redistribute_ipv4_rmap_met +@@ -8657,7 +8696,7 @@ DEFUN (no_bgp_redistribute_ipv4_rmap_met ALIAS (no_bgp_redistribute_ipv4_rmap_metric, no_bgp_redistribute_ipv4_metric_rmap_cmd, @@ -208,7 +208,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8494,6 +8533,9 @@ ALIAS (no_bgp_redistribute_ipv4_rmap_met +@@ -8665,6 +8704,9 @@ ALIAS (no_bgp_redistribute_ipv4_rmap_met "Open Shurtest Path First (OSPF)\n" "Routing Information Protocol (RIP)\n" "Static routes\n" @@ -218,7 +218,7 @@ "Metric for redistributed routes\n" "Default metric\n" "Route map reference\n" -@@ -8502,13 +8544,16 @@ ALIAS (no_bgp_redistribute_ipv4_rmap_met +@@ -8673,13 +8715,16 @@ ALIAS (no_bgp_redistribute_ipv4_rmap_met #ifdef HAVE_IPV6 DEFUN (bgp_redistribute_ipv6, bgp_redistribute_ipv6_cmd, @@ -237,7 +237,7 @@ { int type; -@@ -8524,13 +8569,16 @@ DEFUN (bgp_redistribute_ipv6, +@@ -8695,13 +8740,16 @@ DEFUN (bgp_redistribute_ipv6, DEFUN (bgp_redistribute_ipv6_rmap, bgp_redistribute_ipv6_rmap_cmd, @@ -255,7 +255,7 @@ "Route map reference\n" "Pointer to route-map entries\n") { -@@ -8549,13 +8597,16 @@ DEFUN (bgp_redistribute_ipv6_rmap, +@@ -8720,13 +8768,16 @@ DEFUN (bgp_redistribute_ipv6_rmap, DEFUN (bgp_redistribute_ipv6_metric, bgp_redistribute_ipv6_metric_cmd, @@ -273,7 +273,7 @@ "Metric for redistributed routes\n" "Default metric\n") { -@@ -8576,13 +8627,16 @@ DEFUN (bgp_redistribute_ipv6_metric, +@@ -8747,13 +8798,16 @@ DEFUN (bgp_redistribute_ipv6_metric, DEFUN (bgp_redistribute_ipv6_rmap_metric, bgp_redistribute_ipv6_rmap_metric_cmd, @@ -291,7 +291,7 @@ "Route map reference\n" "Pointer to route-map entries\n" "Metric for redistributed routes\n" -@@ -8606,13 +8660,16 @@ DEFUN (bgp_redistribute_ipv6_rmap_metric +@@ -8777,13 +8831,16 @@ DEFUN (bgp_redistribute_ipv6_rmap_metric DEFUN (bgp_redistribute_ipv6_metric_rmap, bgp_redistribute_ipv6_metric_rmap_cmd, @@ -309,7 +309,7 @@ "Metric for redistributed routes\n" "Default metric\n" "Route map reference\n" -@@ -8636,14 +8693,17 @@ DEFUN (bgp_redistribute_ipv6_metric_rmap +@@ -8807,14 +8864,17 @@ DEFUN (bgp_redistribute_ipv6_metric_rmap DEFUN (no_bgp_redistribute_ipv6, no_bgp_redistribute_ipv6_cmd, @@ -329,7 +329,7 @@ { int type; -@@ -8659,7 +8719,7 @@ DEFUN (no_bgp_redistribute_ipv6, +@@ -8830,7 +8890,7 @@ DEFUN (no_bgp_redistribute_ipv6, DEFUN (no_bgp_redistribute_ipv6_rmap, no_bgp_redistribute_ipv6_rmap_cmd, @@ -338,7 +338,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8667,6 +8727,9 @@ DEFUN (no_bgp_redistribute_ipv6_rmap, +@@ -8838,6 +8898,9 @@ DEFUN (no_bgp_redistribute_ipv6_rmap, "Open Shurtest Path First (OSPFv3)\n" "Routing Information Protocol (RIPng)\n" "Static routes\n" @@ -348,7 +348,7 @@ "Route map reference\n" "Pointer to route-map entries\n") { -@@ -8685,7 +8748,7 @@ DEFUN (no_bgp_redistribute_ipv6_rmap, +@@ -8856,7 +8919,7 @@ DEFUN (no_bgp_redistribute_ipv6_rmap, DEFUN (no_bgp_redistribute_ipv6_metric, no_bgp_redistribute_ipv6_metric_cmd, @@ -357,7 +357,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8693,6 +8756,9 @@ DEFUN (no_bgp_redistribute_ipv6_metric, +@@ -8864,6 +8927,9 @@ DEFUN (no_bgp_redistribute_ipv6_metric, "Open Shurtest Path First (OSPFv3)\n" "Routing Information Protocol (RIPng)\n" "Static routes\n" @@ -367,7 +367,7 @@ "Metric for redistributed routes\n" "Default metric\n") { -@@ -8711,7 +8777,7 @@ DEFUN (no_bgp_redistribute_ipv6_metric, +@@ -8882,7 +8948,7 @@ DEFUN (no_bgp_redistribute_ipv6_metric, DEFUN (no_bgp_redistribute_ipv6_rmap_metric, no_bgp_redistribute_ipv6_rmap_metric_cmd, @@ -376,7 +376,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8719,6 +8785,9 @@ DEFUN (no_bgp_redistribute_ipv6_rmap_met +@@ -8890,6 +8956,9 @@ DEFUN (no_bgp_redistribute_ipv6_rmap_met "Open Shurtest Path First (OSPFv3)\n" "Routing Information Protocol (RIPng)\n" "Static routes\n" @@ -386,7 +386,7 @@ "Route map reference\n" "Pointer to route-map entries\n" "Metric for redistributed routes\n" -@@ -8740,7 +8809,7 @@ DEFUN (no_bgp_redistribute_ipv6_rmap_met +@@ -8911,7 +8980,7 @@ DEFUN (no_bgp_redistribute_ipv6_rmap_met ALIAS (no_bgp_redistribute_ipv6_rmap_metric, no_bgp_redistribute_ipv6_metric_rmap_cmd, @@ -395,7 +395,7 @@ NO_STR "Redistribute information from another routing protocol\n" "Connected\n" -@@ -8748,6 +8817,9 @@ ALIAS (no_bgp_redistribute_ipv6_rmap_met +@@ -8919,6 +8988,9 @@ ALIAS (no_bgp_redistribute_ipv6_rmap_met "Open Shurtest Path First (OSPFv3)\n" "Routing Information Protocol (RIPng)\n" "Static routes\n" @@ -407,7 +407,7 @@ "Route map reference\n" --- a/lib/log.c +++ b/lib/log.c -@@ -838,6 +838,8 @@ static const struct zebra_desc_table rou +@@ -837,6 +837,8 @@ static const struct zebra_desc_table rou DESC_ENTRY (ZEBRA_ROUTE_ISIS, "isis", 'I' ), DESC_ENTRY (ZEBRA_ROUTE_BGP, "bgp", 'B' ), DESC_ENTRY (ZEBRA_ROUTE_HSLS, "hsls", 'H' ), @@ -444,7 +444,7 @@ +ZEBRA_ROUTE_BATMAN, "Better Approach to Mobile Ad-Hoc Networking (BATMAN)" --- a/lib/zebra.h +++ b/lib/zebra.h -@@ -441,7 +441,9 @@ struct in_pktinfo +@@ -437,7 +437,9 @@ struct in_pktinfo #define ZEBRA_ROUTE_ISIS 8 #define ZEBRA_ROUTE_BGP 9 #define ZEBRA_ROUTE_HSLS 10 @@ -883,7 +883,7 @@ vty_out (vty, "Unknown route type%s", VTY_NEWLINE); --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c -@@ -1488,6 +1488,9 @@ netlink_route_multipath (int cmd, struct +@@ -1494,6 +1494,9 @@ netlink_route_multipath (int cmd, struct addattr_l (&req.n, sizeof req, RTA_PREFSRC, &nexthop->src.ipv4, bytelen); diff --git a/patches/140-holdtimer-set.patch b/patches/140-holdtimer-set.patch index 8642bbf..eb85b40 100644 --- a/patches/140-holdtimer-set.patch +++ b/patches/140-holdtimer-set.patch @@ -1,6 +1,6 @@ --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c -@@ -188,8 +188,7 @@ bgp_accept (struct thread *thread) +@@ -193,8 +193,7 @@ bgp_accept (struct thread *thread) peer->fd = bgp_sock; peer->status = Active; peer->local_id = peer1->local_id; @@ -12,7 +12,7 @@ sockunion2str (&su, buf, SU_ADDRSTRLEN); --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h -@@ -709,6 +709,7 @@ struct bgp_nlri +@@ -712,6 +712,7 @@ struct bgp_nlri /* BGP timers default value. */ #define BGP_INIT_START_TIMER 5 #define BGP_ERROR_START_TIMER 30 diff --git a/patches/150-no-cross-fs-link.patch b/patches/150-no-cross-fs-link.patch index c3f29c3..d22311c 100644 --- a/patches/150-no-cross-fs-link.patch +++ b/patches/150-no-cross-fs-link.patch @@ -1,6 +1,6 @@ --- a/lib/command.c +++ b/lib/command.c -@@ -2601,6 +2601,13 @@ DEFUN (config_write_file, +@@ -2599,6 +2599,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, +@@ -2612,7 +2619,23 @@ DEFUN (config_write_file, VTY_NEWLINE); goto finished; } diff --git a/patches/160-pgbgp.patch b/patches/160-pgbgp.patch index c88ba98..fcdd03b 100644 --- a/patches/160-pgbgp.patch +++ b/patches/160-pgbgp.patch @@ -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, -@@ -11063,6 +11108,64 @@ DEFUN (bgp_damp_set, +@@ -11823,6 +11868,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>", -@@ -11112,6 +11215,19 @@ DEFUN (show_ip_bgp_dampened_paths, +@@ -11872,6 +11975,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", -@@ -11629,6 +11745,7 @@ bgp_route_init (void) +@@ -12398,6 +12514,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); -@@ -11736,6 +11853,7 @@ bgp_route_init (void) +@@ -12531,6 +12648,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); -@@ -12093,6 +12211,10 @@ bgp_route_init (void) +@@ -12918,6 +13036,10 @@ bgp_route_init (void) install_element (BGP_IPV4_NODE, &bgp_damp_unset_cmd); install_element (BGP_IPV4_NODE, &bgp_damp_unset2_cmd); @@ -3077,7 +3077,7 @@ X-Git-Url: http://git.ozo.com/?p=quagga-pgbg.git;a=commitdiff_plain;h=c2ee55705c --- a/lib/memtypes.c +++ b/lib/memtypes.c -@@ -149,6 +149,15 @@ struct memory_list memory_list_bgp[] = +@@ -147,6 +147,15 @@ struct memory_list memory_list_bgp[] = { MTYPE_PEER_UPDATE_SOURCE, "BGP peer update interface" }, { MTYPE_BGP_DAMP_INFO, "Dampening info" }, { MTYPE_BGP_DAMP_ARRAY, "BGP Dampening array" }, diff --git a/patches/161-pgbgp-addon.patch b/patches/161-pgbgp-addon.patch index 0fd8a55..d2202b3 100644 --- a/patches/161-pgbgp-addon.patch +++ b/patches/161-pgbgp-addon.patch @@ -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) -@@ -9492,7 +9504,7 @@ show_adj_route (struct vty *vty, struct +@@ -9761,7 +9773,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", -@@ -9509,7 +9521,7 @@ show_adj_route (struct vty *vty, struct +@@ -9778,7 +9790,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; } -@@ -9533,7 +9545,7 @@ show_adj_route (struct vty *vty, struct +@@ -9802,7 +9814,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); -- 2.30.2