*: 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_routemap.c b/ripngd/ripng_routemap.c
index 0f5cca3..f4fadb6 100644
--- a/ripngd/ripng_routemap.c
+++ b/ripngd/ripng_routemap.c
@@ -29,7 +29,7 @@
#include "sockunion.h"
#include "ripngd/ripngd.h"
-
+
struct rip_metric_modifier
{
enum
@@ -42,7 +42,7 @@
u_char metric;
};
-
+
static int
ripng_route_match_add (struct vty *vty, struct route_map_index *index,
const char *command, const char *arg)
@@ -130,7 +130,7 @@
}
return CMD_SUCCESS;
}
-
+
/* `match metric METRIC' */
/* Match function return 1 if match is success else return zero. */
static route_map_result_t
@@ -184,7 +184,7 @@
route_match_metric_compile,
route_match_metric_free
};
-
+
/* `match interface IFNAME' */
/* Match function return 1 if match is success else return zero. */
static route_map_result_t
@@ -284,7 +284,7 @@
route_match_tag_compile,
route_match_tag_free
};
-
+
/* `set metric METRIC' */
/* Set metric to attribute. */
@@ -496,7 +496,7 @@
route_set_tag_compile,
route_set_tag_free
};
-
+
#define MATCH_STR "Match values from routing table\n"
#define SET_STR "Set values in destination routing protocol\n"