diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-10-17 22:16:44 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-10-18 21:58:34 +0200 |
commit | 1ee788dbb10445063d61e58bd3153a7e8e1fce4c (patch) | |
tree | 5705f7bd782979cca6cc4eb7a354e9a487fa9220 | |
parent | ead9789e75824854c2ffab0c68bc0dd4269afc81 (diff) |
ubus: display the point-to-point IPv4 address
Display the point-to-point IPv4 address as well when dumping
the IP address list in ubus.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | ubus.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |