*: 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/zebra/zserv.c b/zebra/zserv.c
index 55ac6e4..ca17c2c 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -42,7 +42,7 @@
#include "zebra/redistribute.h"
#include "zebra/debug.h"
#include "zebra/ipforward.h"
-
+
/* Event list of zebra. */
enum event { ZEBRA_SERV, ZEBRA_READ, ZEBRA_WRITE };
@@ -51,7 +51,7 @@
static void zebra_event (enum event event, int sock, struct zserv *client);
extern struct zebra_privs_t zserv_privs;
-
+
static void zebra_client_close (struct zserv *client);
static int
@@ -661,7 +661,7 @@
return zebra_server_send_message(client);
}
-
+
/* Router-id is updated. Send ZEBRA_ROUTER_ID_ADD to client. */
int
zsend_router_id_update (struct zserv *client, struct prefix *p)
@@ -690,7 +690,7 @@
return zebra_server_send_message(client);
}
-
+
/* Register zebra server interface information. Send current all
interface and address information. */
static int
@@ -1539,7 +1539,7 @@
zebra_event (ZEBRA_SERV, sock, NULL);
}
-
+
static void
zebra_event (enum event event, int sock, struct zserv *client)
@@ -1558,7 +1558,7 @@
break;
}
}
-
+
/* Display default rtm_table for all clients. */
DEFUN (show_table,
show_table_cmd,
@@ -1658,7 +1658,7 @@
"", /* This node has no interface. */
1
};
-
+
/* Only display ip forwarding is enabled or not. */
DEFUN (show_ip_forwarding,
show_ip_forwarding_cmd,
@@ -1779,7 +1779,7 @@
1
};
-
+
/* Initialisation of zebra and installation of commands. */
void
zebra_init (void)