*: 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/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index 6718fff..8717bfb 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -38,7 +38,7 @@
#include "ripngd/ripngd.h"
#include "ripngd/ripng_debug.h"
-
+
/* If RFC2133 definition is used. */
#ifndef IPV6_JOIN_GROUP
#define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP
@@ -505,7 +505,7 @@
return 0;
}
-
+
/* RIPng enable interface vector. */
vector ripng_enable_if;
@@ -812,7 +812,7 @@
for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp))
ripng_enable_apply (ifp);
}
-
+
/* Clear all network and neighbor configuration */
void
ripng_clean_network ()
@@ -835,7 +835,7 @@
vector_slot (ripng_enable_if, i) = NULL;
}
}
-
+
/* Vector to store passive-interface name. */
vector Vripng_passive_interface;
@@ -1103,7 +1103,7 @@
{
return ripng_passive_interface_unset (vty, argv[0]);
}
-
+
static struct ripng_interface *
ri_new (void)
{