LIST_HEAD(xroute_ipv4_list);
LIST_HEAD(xroute_ipv6_list);
+ blob_buf_init(&b, 0);
+
xroutes = xroute_stream();
if (xroutes) {
while (1) {
xroute_stream_done(xroutes);
}
- blob_buf_init(&b, 0);
ipv4 = blobmsg_open_table(&b, "IPv4");
list_for_each_entry_safe(cur, tmp, &xroute_ipv4_list, list) {
babeld_add_xroute_buf(cur->xroute, &b);
route_stream_done(routes);
}
- blob_buf_init(&b, 0);
ipv4 = blobmsg_open_table(&b, "IPv4");
list_for_each_entry_safe(cur, tmp, &route_ipv4_list, list) {
babeld_add_route_buf(cur->route, &b);
}
}
- blob_buf_init(&b, 0);
-
ipv4 = blobmsg_open_table(&b, "IPv4");
list_for_each_entry_safe(cur, tmp, &neighbour_ipv4_list, list) {
babeld_add_neighbour_buf(cur->neighbour, &b);