diff options
author | Steven Barth <steven@midlink.org> | 2015-05-19 10:58:34 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-05-19 10:58:34 +0200 |
commit | 8faa5b30b12ee3e4d06a8d2557d1f112f1f2786e (patch) | |
tree | 17a13b2a9668f8ef8e00cf017ebe8d5b13c70c09 /system-linux.c | |
parent | 6906beee9df0942fc4e8f27faa8dd3c6ef32cfd7 (diff) | |
download | netifd-8faa5b30b12ee3e4d06a8d2557d1f112f1f2786e.tar.gz |
ipv6: use kernel >= 3.14 handling of offlink-addresses
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system-linux.c b/system-linux.c index a6734a4..bfd623b 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1427,6 +1427,7 @@ static int system_addr(struct device *dev, struct device_addr *addr, int cmd) .ifa_family = (alen == 4) ? AF_INET : AF_INET6, .ifa_prefixlen = addr->mask, .ifa_index = dev->ifindex, + .ifa_flags = (addr->flags & DEVADDR_OFFLINK) ? IFA_F_NOPREFIXROUTE : 0, }; struct nl_msg *msg; |