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),
20 struct vlist_node node
;
22 enum device_addr_flags flags
;
29 struct vlist_node node
;
31 enum device_addr_flags flags
;
36 union if_addr nexthop
;
39 void interface_ip_init(struct interface
*iface
);