fix format
This commit is contained in:
parent
ad09c4303a
commit
c9b120fc2f
1 changed files with 21 additions and 17 deletions
|
@ -89,7 +89,8 @@ static void babeld_add_xroute_buf(struct xroute *xroute, struct blob_buf *b) {
|
||||||
blobmsg_close_table(b, prefix);
|
blobmsg_close_table(b, prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sends an exported routes message on ubus socket, splitting apart IPv4 and IPv6 routes.
|
// Sends an exported routes message on ubus socket, splitting apart IPv4 and
|
||||||
|
// IPv6 routes.
|
||||||
static int babeld_ubus_get_xroutes(struct ubus_context *ctx_local,
|
static int babeld_ubus_get_xroutes(struct ubus_context *ctx_local,
|
||||||
struct ubus_object *obj,
|
struct ubus_object *obj,
|
||||||
struct ubus_request_data *req,
|
struct ubus_request_data *req,
|
||||||
|
@ -191,7 +192,8 @@ static void babeld_add_route_buf(struct babel_route *route,
|
||||||
blobmsg_close_table(b, prefix);
|
blobmsg_close_table(b, prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sends received routes message on ubus socket, splitting apart IPv4 and IPv6 routes.
|
// Sends received routes message on ubus socket, splitting apart IPv4 and IPv6
|
||||||
|
// routes.
|
||||||
static int babeld_ubus_get_routes(struct ubus_context *ctx_local,
|
static int babeld_ubus_get_routes(struct ubus_context *ctx_local,
|
||||||
struct ubus_object *obj,
|
struct ubus_object *obj,
|
||||||
struct ubus_request_data *req,
|
struct ubus_request_data *req,
|
||||||
|
@ -265,7 +267,8 @@ static void babeld_add_neighbour_buf(struct neighbour *neigh,
|
||||||
blobmsg_close_table(b, neighbour);
|
blobmsg_close_table(b, neighbour);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sends neighbours message on ubus socket, splitting apart IPv4 and IPv6 neighbours.
|
// Sends neighbours message on ubus socket, splitting apart IPv4 and IPv6
|
||||||
|
// neighbours.
|
||||||
static int babeld_ubus_get_neighbours(struct ubus_context *ctx_local,
|
static int babeld_ubus_get_neighbours(struct ubus_context *ctx_local,
|
||||||
struct ubus_object *obj,
|
struct ubus_object *obj,
|
||||||
struct ubus_request_data *req,
|
struct ubus_request_data *req,
|
||||||
|
@ -384,7 +387,8 @@ void ubus_notify_route(struct babel_route *route, int kind) {
|
||||||
|
|
||||||
void ubus_notify_xroute(struct xroute *xroute, int kind) {
|
void ubus_notify_xroute(struct xroute *xroute, int kind) {
|
||||||
struct blob_buf b = {0};
|
struct blob_buf b = {0};
|
||||||
char method[50]; // possible methods are xroute.change, xroute.add, xroute.flush
|
char method[50]; // possible methods are xroute.change, xroute.add,
|
||||||
|
// xroute.flush
|
||||||
|
|
||||||
if (!babeld_object.has_subscribers)
|
if (!babeld_object.has_subscribers)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue