projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubus: display the point-to-point IPv4 address
[project/netifd.git]
/
ubus.c
diff --git
a/ubus.c
b/ubus.c
index bf7267239ccc7ab16625fc658f1a04cfcc015db7..96bc2479e4a9eb01dceb2aa7db620f1cf3f572d6 100644
(file)
--- 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())
struct blob_attr *msg)
{
if (netifd_reload())
- return UBUS_STATUS_
UNKNOWN_ERROR
;
+ return UBUS_STATUS_
NOT_FOUND
;
return UBUS_STATUS_OK;
}
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);
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)
if (addr->preferred_until) {
int preferred = addr->preferred_until - now;
if (preferred < 0)