*: 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/ripd/rip_routemap.c b/ripd/rip_routemap.c
index cb87ea5..37a986c 100644
--- a/ripd/rip_routemap.c
+++ b/ripd/rip_routemap.c
@@ -32,7 +32,7 @@
#include "plist.h"
#include "ripd/ripd.h"
-
+
struct rip_metric_modifier
{
enum
@@ -160,7 +160,7 @@
}
}
}
-
+
/* `match metric METRIC' */
/* Match function return 1 if match is success else return zero. */
static route_map_result_t
@@ -323,7 +323,7 @@
route_match_ip_next_hop_compile,
route_match_ip_next_hop_free
};
-
+
/* `match ip next-hop prefix-list PREFIX_LIST' */
static route_map_result_t
@@ -370,7 +370,7 @@
route_match_ip_next_hop_prefix_list_compile,
route_match_ip_next_hop_prefix_list_free
};
-
+
/* `match ip address IP_ACCESS_LIST' */
/* Match function should return 1 if match is success else return
@@ -416,7 +416,7 @@
route_match_ip_address_compile,
route_match_ip_address_free
};
-
+
/* `match ip address prefix-list PREFIX_LIST' */
static route_map_result_t
@@ -507,7 +507,7 @@
route_match_tag_compile,
route_match_tag_free
};
-
+
/* `set metric METRIC' */
/* Set metric to attribute. */
@@ -718,7 +718,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"