*: nuke ^L (page feed)
Quagga sources have inherited a slew of Page Feed (^L, \xC) characters
from ancient history. Among other things, these break patchwork's
XML-RPC API because \xC is not a valid character in XML documents.
Nuke them from high orbit.
Patches can be adapted simply by:
sed -e 's%^L%%' -i filename.patch
(you can type page feeds in some environments with Ctrl-V Ctrl-L)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 0f21232..f18d916 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -38,7 +38,7 @@
#include "bgpd/bgp_fsm.h"
#include "bgpd/bgp_debug.h"
#include "bgpd/bgp_mpath.h"
-
+
/* All information about zebra. */
struct zclient *zclient = NULL;
struct in_addr router_id_zebra;
@@ -381,7 +381,7 @@
return 0;
}
#endif /* HAVE_IPV6 */
-
+
struct interface *
if_lookup_by_ipv4 (struct in_addr *addr)
{
@@ -943,7 +943,7 @@
}
#endif /* HAVE_IPV6 */
}
-
+
/* Other routes redistribution into BGP. */
int
bgp_redistribute_set (struct bgp *bgp, afi_t afi, int type)
@@ -1069,7 +1069,7 @@
return 1;
}
-
+
void
bgp_zclient_reset (void)
{