display more srv attributes in output of ubus browse function
authorMohd Husaam Mehdi <h.mehdi@gxgroup.eu>
Sun, 14 Jan 2024 14:48:32 +0000 (20:18 +0530)
committerJohn Crispin <john@phrozen.org>
Wed, 11 Dec 2024 11:42:41 +0000 (12:42 +0100)
commit0b50c29101b3e8e2095c42df43eddf0181f885fb
tree2ef9d2787ac548933066b2ed49b7ec5121cecc8f
parentfbaca4b6f530d4b2f361ee15c266aa19a708242b
display more srv attributes in output of ubus browse function

In the output of ubus call umdns browse, the following srv params
have been exposed with this commit:

* domain,
* ttl,
* last_update,
* priority
* weight

The new output looks as follows:

"_http._tcp": {
"Apache service": {
"iface": "br-lan",
"host": "user831.local",
"domain": "local",
"port": 80,
"ttl": 120,
"last_update": "2024-01-16T02:41:02Z",
"priority": 0,
"weight": 0,
"ipv4": "192.168.1.245",
"ipv6": "9999:1234:830::1f0",
"ipv6": "fdc5:c8b6:f412::1f0",
"ipv6": "fdc5:c8b6:f412:0:a800:aaff:fe53:101",
"ipv6": "9999:1234:830:0:a800:aaff:fe53:101"
}
}

Signed-off-by: Mohd Husaam <husaam.mehdi@iopsys.eu>
cache.c