about summary refs log tree commit diff
path: root/pkgs/tools/networking/nss-myhostname/ignore-ipv6-link-local.patch
blob: 396bb2e10ccdf63cacc4e24e0057f4c2dbc364ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- nss-myhostname-0.3/netlink.c	2011-05-09 08:56:34.344579140 -0400
+++ nss-myhostname-0.3-new/netlink.c	2012-10-06 23:52:10.577755588 -0400
@@ -179,6 +179,10 @@
                             ifaddrmsg->ifa_scope == RT_SCOPE_NOWHERE)
                                 continue;
 
+                        if (ifaddrmsg->ifa_family == AF_INET6 &&
+                            ifaddrmsg->ifa_scope == RT_SCOPE_LINK)
+                                continue;
+
                         if (ifaddrmsg->ifa_flags & IFA_F_DEPRECATED)
                                 continue;