* [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: quagga-0.99.21-fix-no-ipv6.patch
@ 2012-12-06 19:27 Sergey Popov (pinkbyte)
0 siblings, 0 replies; only message in thread
From: Sergey Popov (pinkbyte) @ 2012-12-06 19:27 UTC (permalink / raw
To: gentoo-commits
pinkbyte 12/12/06 19:27:15
Added: quagga-0.99.21-fix-no-ipv6.patch
Log:
Fix building with disabled ipv6 USE-flag, wrt bug #446289
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.1 net-misc/quagga/files/quagga-0.99.21-fix-no-ipv6.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.21-fix-no-ipv6.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.21-fix-no-ipv6.patch?rev=1.1&content-type=text/plain
Index: quagga-0.99.21-fix-no-ipv6.patch
===================================================================
Fix building with no IPv6 support
https://dev.openwrt.org/changeset/32697
Index: quagga-0.99.21/zebra/main.c
===================================================================
--- quagga-0.99.21.orig/zebra/main.c
+++ quagga-0.99.21/zebra/main.c
@@ -327,7 +327,9 @@ main (int argc, char **argv)
zebra_vty_init ();
access_list_init ();
prefix_list_init ();
+#ifdef RTADV
rtadv_init ();
+#endif
#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
@@ -26,6 +26,9 @@
#include "vty.h"
#include "zebra/interface.h"
+/* NB: RTADV is defined in zebra/interface.h above */
+#ifdef RTADV
+
/* Router advertisement prefix. */
struct rtadv_prefix
{
@@ -96,4 +99,6 @@ struct nd_opt_homeagent_info { /* Home
extern const char *rtadv_pref_strs[];
+#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
@@ -1197,6 +1197,40 @@ DEFUN (show_ip_protocol,
return CMD_SUCCESS;
}
+/*
+ * Show IP mroute command to dump the BGP Multicast
+ * routing table
+ */
+DEFUN (show_ip_mroute,
+ show_ip_mroute_cmd,
+ "show ip mroute",
+ SHOW_STR
+ IP_STR
+ "IP Multicast routing table\n")
+{
+ struct route_table *table;
+ struct route_node *rn;
+ struct rib *rib;
+ int first = 1;
+
+ table = vrf_table (AFI_IP, SAFI_MULTICAST, 0);
+ if (! table)
+ return CMD_SUCCESS;
+
+ /* Show all IPv4 routes. */
+ for (rn = route_top (table); rn; rn = route_next (rn))
+ for (rib = rn->info; rib; rib = rib->next)
+ {
+ if (first)
+ {
+ vty_out (vty, SHOW_ROUTE_V4_HEADER);
+ first = 0;
+ }
+ vty_show_ip_route (vty, rn, rib);
+ }
+ return CMD_SUCCESS;
+}
+
\f
#ifdef HAVE_IPV6
/* General fucntion for IPv6 static route. */
@@ -1952,40 +1986,6 @@ DEFUN (show_ipv6_route_summary,
}
/*
- * Show IP mroute command to dump the BGP Multicast
- * routing table
- */
-DEFUN (show_ip_mroute,
- show_ip_mroute_cmd,
- "show ip mroute",
- SHOW_STR
- IP_STR
- "IP Multicast routing table\n")
-{
- struct route_table *table;
- struct route_node *rn;
- struct rib *rib;
- int first = 1;
-
- table = vrf_table (AFI_IP, SAFI_MULTICAST, 0);
- if (! table)
- return CMD_SUCCESS;
-
- /* Show all IPv4 routes. */
- for (rn = route_top (table); rn; rn = route_next (rn))
- for (rib = rn->info; rib; rib = rib->next)
- {
- if (first)
- {
- vty_out (vty, SHOW_ROUTE_V4_HEADER);
- first = 0;
- }
- vty_show_ip_route (vty, rn, rib);
- }
- return CMD_SUCCESS;
-}
-
-/*
* Show IPv6 mroute command.Used to dump
* the Multicast routing table.
*/
@@ -2020,11 +2020,6 @@ DEFUN (show_ipv6_mroute,
return CMD_SUCCESS;
}
-
-
-
-
-
/* Write IPv6 static route configuration. */
static int
static_config_ipv6 (struct vty *vty)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-06 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 19:27 [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: quagga-0.99.21-fix-no-ipv6.patch Sergey Popov (pinkbyte)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox