*: 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/zebra_rib.c b/zebra/zebra_rib.c
index 8835ef3..dc7e1ca 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -71,7 +71,7 @@
[ZEBRA_ROUTE_BABEL] = {ZEBRA_ROUTE_BABEL, 95},
/* no entry/default: 150 */
};
-
+
/* Vector for routing table. */
static vector vrf_vector;
@@ -176,7 +176,7 @@
return vrf->stable[afi][safi];
}
-
+
/*
* nexthop_type_to_str
*/
@@ -1090,7 +1090,7 @@
return rib->nexthop_active_num;
}
-
+
static void
rib_install_kernel (struct route_node *rn, struct rib *rib)
@@ -2283,7 +2283,7 @@
route_unlock_node (rn);
return 0;
}
-
+
/* Install static route into rib. */
static void
static_install_ipv4 (struct prefix *p, struct static_ipv4 *si)
@@ -2596,7 +2596,7 @@
return 1;
}
-
+
#ifdef HAVE_IPV6
static int
rib_bogus_ipv6 (int type, struct prefix_ipv6 *p,
@@ -2857,7 +2857,7 @@
route_unlock_node (rn);
return 0;
}
-
+
/* Install static route into rib. */
static void
static_install_ipv6 (struct prefix *p, struct static_ipv6 *si)
@@ -3155,7 +3155,7 @@
return 1;
}
#endif /* HAVE_IPV6 */
-
+
/* RIB update function. */
void
rib_update (void)
@@ -3176,7 +3176,7 @@
rib_queue_add (&zebrad, rn);
}
-
+
/* Remove all routes which comes from non main table. */
static void
rib_weed_table (struct route_table *table)
@@ -3205,7 +3205,7 @@
rib_weed_table (vrf_table (AFI_IP, SAFI_UNICAST, 0));
rib_weed_table (vrf_table (AFI_IP6, SAFI_UNICAST, 0));
}
-
+
/* Delete self installed routes after zebra is relaunched. */
static void
rib_sweep_table (struct route_table *table)
@@ -3301,7 +3301,7 @@
rib_close_table (vrf_table (AFI_IP, SAFI_UNICAST, 0));
rib_close_table (vrf_table (AFI_IP6, SAFI_UNICAST, 0));
}
-
+
/* Routing information base initialize. */
void
rib_init (void)