From 58d2488ffe9553b908d3e10826376adeeb55d67b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 12 Sep 2011 11:50:03 +0200 Subject: add support for externally managed ip addresses and routes --- interface-ip.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'interface-ip.h') 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 { -- cgit v1.2.3