bf2cf73397f3e4c72760afc0f8a2a6142728ecae
1 #ifndef __INTERFACE_IP_H
2 #define __INTERFACE_IP_H
4 enum device_addr_flags
{
5 /* address family for routes and addresses */
6 DEVADDR_INET4
= (0 << 0),
7 DEVADDR_INET6
= (1 << 0),
8 DEVADDR_FAMILY
= DEVADDR_INET4
| DEVADDR_INET6
,
10 /* device route (no gateway) */
11 DEVADDR_DEVICE
= (1 << 1),
13 /* externally added address */
14 DEVADDR_EXTERNAL
= (1 << 2),
23 struct vlist_node node
;
25 enum device_addr_flags flags
;
32 struct vlist_node node
;
34 enum device_addr_flags flags
;
39 union if_addr nexthop
;
42 void interface_ip_init(struct interface
*iface
);