diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-05-02 23:00:30 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-05-02 23:00:30 +0200 |
commit | 273550337f70b8b2175875e0c4f0bbd483cfe326 (patch) | |
tree | b433b4dcc731d61f750692a2a531c21e5eac4f26 /proto-static.c | |
parent | 85218c601b0f5895f9025910643761930c02eb1a (diff) |
move interface address handling to the device module, clean up arguments to system_{add,del}_addr
Diffstat (limited to 'proto-static.c')
-rw-r--r-- | proto-static.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto-static.c b/proto-static.c index 3a36ec0..53e0ec8 100644 --- a/proto-static.c +++ b/proto-static.c @@ -56,11 +56,11 @@ parse_ip_and_netmask(int af, const char *str, void *addr, unsigned int *netmask) static bool parse_addr(struct static_proto_state *state, const char *str, bool v6, int mask) { - struct interface_addr *addr; + struct device_addr *addr; int af = v6 ? AF_INET6 : AF_INET; addr = calloc(1, sizeof(*addr)); - addr->flags = v6 ? IFADDR_INET6 : IFADDR_INET4; + addr->flags = v6 ? DEVADDR_INET6 : DEVADDR_INET4; addr->ctx = state; addr->mask = mask; if (!parse_ip_and_netmask(af, str, &addr->addr, &addr->mask)) { |