X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=ubus.c;h=96bc2479e4a9eb01dceb2aa7db620f1cf3f572d6;hp=bf7267239ccc7ab16625fc658f1a04cfcc015db7;hb=56cecedb261808f5ea700b92b97590f7fa16de9c;hpb=ef5f7a09a202ba6c3d2021af0b36ee32a18f680f 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)