*: 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_attr.c b/bgpd/bgp_attr.c
index f284758..a1fd165 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -38,7 +38,7 @@
#include "bgpd/bgp_debug.h"
#include "bgpd/bgp_packet.h"
#include "bgpd/bgp_ecommunity.h"
-
+
/* Attribute strings for logging. */
static const struct message attr_str [] =
{
@@ -73,7 +73,7 @@
{ BGP_ATTR_FLAG_EXTLEN, "Extended Length" },
};
static const size_t attr_flag_str_max = array_size(attr_flag_str);
-
+
static struct hash *cluster_hash;
static void *
@@ -207,7 +207,7 @@
hash_free (cluster_hash);
cluster_hash = NULL;
}
-
+
/* Unknown transit attribute. */
static struct hash *transit_hash;
@@ -283,7 +283,7 @@
hash_free (transit_hash);
transit_hash = NULL;
}
-
+
/* Attribute hash routines. */
static struct hash *attrhash;
@@ -2055,7 +2055,7 @@
}
return BGP_ATTR_PARSE_PROCEED;
}
-
+
int stream_put_prefix (struct stream *, struct prefix *);
size_t