diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-12 11:50:03 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-12 11:50:03 +0200 |
commit | 58d2488ffe9553b908d3e10826376adeeb55d67b (patch) | |
tree | 33db179e71bb6b07f2c49452e92ef148a633c918 /interface-ip.h | |
parent | 3bd56db589071948eebd30b00cda7ef1fb38a61b (diff) |
add support for externally managed ip addresses and routes
Diffstat (limited to 'interface-ip.h')
-rw-r--r-- | interface-ip.h | 11 |
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 { |