From 08989e46b9030671ce57b8872538d40e2ddcbbe0 Mon Sep 17 00:00:00 2001 From: meurisa Date: Fri, 12 Apr 2019 09:56:28 +0200 Subject: interface: add neighbor config support The neighbor or neighbor6 network section makes neighbours configurable via UCI or proto shell handlers. It allows to install neighbor proxy entries or static neighbor entries The neighbor or neighbor6 section has the following types: interface : declares the logical OpenWrt interface ipaddr : the ip address of the neighbor mac : the mac address of the neighbor proxy : specifies whether the neighbor ia a proxy entry (can be 1 or 0) router : specifies whether the neighbor is a router (can be 1 or 0) Signed-off-by: Alexander Meuris Signed-off-by: Hans Dedecker --- interface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'interface.h') diff --git a/interface.h b/interface.h index 098e0fc..22738a9 100644 --- a/interface.h +++ b/interface.h @@ -82,6 +82,7 @@ struct interface_ip_settings { struct vlist_tree addr; struct vlist_tree route; struct vlist_tree prefix; + struct vlist_tree neighbor; struct vlist_simple_tree dns_servers; struct vlist_simple_tree dns_search; @@ -146,6 +147,7 @@ struct interface { struct interface_ip_settings proto_ip; struct interface_ip_settings config_ip; struct vlist_tree host_routes; + struct vlist_tree host_neighbors; int metric; int dns_metric; -- cgit v1.2.1