X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=ubus.c;h=96bc2479e4a9eb01dceb2aa7db620f1cf3f572d6;hb=1ee788dbb10445063d61e58bd3153a7e8e1fce4c;hp=bf7267239ccc7ab16625fc658f1a04cfcc015db7;hpb=ef5f7a09a202ba6c3d2021af0b36ee32a18f680f;p=project%2Fnetifd.git diff --git a/ubus.c b/ubus.c index bf72672..96bc247 100644 --- a/ubus.c +++ b/ubus.c @@ -45,7 +45,7 @@ netifd_handle_reload(struct ubus_context *ctx, struct ubus_object *obj, struct blob_attr *msg) { if (netifd_reload()) - return UBUS_STATUS_UNKNOWN_ERROR; + return UBUS_STATUS_NOT_FOUND; return UBUS_STATUS_OK; } @@ -441,6 +441,12 @@ interface_ip_dump_address_list(struct interface_ip_settings *ip, bool v6, bool e blobmsg_add_u32(&b, "mask", addr->mask); + if (addr->point_to_point) { + buf = blobmsg_alloc_string_buffer(&b, "ptpaddress", buflen); + inet_ntop(af, &addr->point_to_point, buf, buflen); + blobmsg_add_string_buffer(&b); + } + if (addr->preferred_until) { int preferred = addr->preferred_until - now; if (preferred < 0)