From c841950ff86bf9ccae23333a349c7dd80ca070b7 Mon Sep 17 00:00:00 2001
From: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: Wed, 7 Aug 2024 16:43:52 +0200
Subject: [PATCH] parse 'remote_via' to get neighbor-1905 node's link interface

---
 src/ubus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ubus.c b/src/ubus.c
index 6a5bfd0..95997cf 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -307,7 +307,7 @@ static void hostmngr_1905topology_cb(struct ubus_request *req, int type,
 		blobmsg_for_each_attr(n_attr, tbn[ATTR_NBRLIST], rem2) {
 			const struct blobmsg_policy nbr_attrs[2] = {
 				[0] = { .name = "macaddress", .type = BLOBMSG_TYPE_STRING },
-				[1] = { .name = "via", .type = BLOBMSG_TYPE_STRING },
+				[1] = { .name = "remote_via", .type = BLOBMSG_TYPE_STRING },
 			};
 			struct blob_attr *tbnbr[2];
 			uint8_t nbr_macaddr[6] = {0};
-- 
GitLab