1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/networking/nss-myhostname/ignore-ipv6-link-local.patch
2012-10-07 14:59:29 -04:00

14 lines
573 B
Diff

--- 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;