/* route overrides the default route type */
DEVROUTE_TYPE = (1 << 10),
+
+ /* neighbor mac address */
+ DEVNEIGH_MAC = (1 << 11),
};
union if_addr {
union if_addr source;
};
+struct device_neighbor {
+ struct vlist_node node;
+
+ bool failed;
+ bool proxy;
+ bool keep;
+ bool enabled;
+ bool router;
+
+ uint8_t macaddr[6];
+ enum device_addr_flags flags;
+ union if_addr addr;
+};
+
struct device_addr {
struct vlist_node node;
bool enabled;
};
extern const struct uci_blob_param_list route_attr_list;
+extern const struct uci_blob_param_list neighbor_attr_list;
extern struct list_head prefixes;
void interface_ip_init(struct interface *iface);
void interface_write_resolv_conf(void);
void interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6);
-
+void interface_ip_add_neighbor(struct interface *iface, struct blob_attr *attr, bool v6);
void interface_ip_update_start(struct interface_ip_settings *ip);
void interface_ip_update_complete(struct interface_ip_settings *ip);
void interface_ip_flush(struct interface_ip_settings *ip);