summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-12 11:50:03 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-12 11:50:03 +0200
commit58d2488ffe9553b908d3e10826376adeeb55d67b (patch)
tree33db179e71bb6b07f2c49452e92ef148a633c918 /interface-ip.h
parent3bd56db589071948eebd30b00cda7ef1fb38a61b (diff)
add support for externally managed ip addresses and routes
Diffstat (limited to 'interface-ip.h')
-rw-r--r--interface-ip.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/interface-ip.h b/interface-ip.h
index 9266727..bf2cf73 100644
--- a/interface-ip.h
+++ b/interface-ip.h
@@ -3,12 +3,15 @@
enum device_addr_flags {
/* address family for routes and addresses */
- DEVADDR_INET4 = (0 << 0),
- DEVADDR_INET6 = (1 << 0),
- DEVADDR_FAMILY = DEVADDR_INET4 | DEVADDR_INET6,
+ DEVADDR_INET4 = (0 << 0),
+ DEVADDR_INET6 = (1 << 0),
+ DEVADDR_FAMILY = DEVADDR_INET4 | DEVADDR_INET6,
/* device route (no gateway) */
- DEVADDR_DEVICE = (1 << 1),
+ DEVADDR_DEVICE = (1 << 1),
+
+ /* externally added address */
+ DEVADDR_EXTERNAL = (1 << 2),
};
union if_addr {