Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/apache2/mDNSResponder/dist/mDNSPosix Teach mdnsd ab...
details: https://anonhg.NetBSD.org/src/rev/8e0fe927ef48
branches: trunk
changeset: 808967:8e0fe927ef48
user: roy <roy%NetBSD.org@localhost>
date: Wed Jun 10 16:32:42 2015 +0000
description:
Teach mdnsd about IN_IFF_NOTREADY and IN_IFF_DETACHED.
diffstat:
external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 5991baf51a96 -r 8e0fe927ef48 external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c
--- a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c Wed Jun 10 15:28:27 2015 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c Wed Jun 10 16:32:42 2015 +0000
@@ -279,6 +279,15 @@
continue; /* ignore if interface not up */
/* Skip addresses we can't use */
+#ifdef SIOCGIFAFLAG_IN
+ if (ifr->ifr_addr.sa_family == AF_INET) {
+ ifrcopy = *ifr;
+ if (ioctl(sockfd, SIOCGIFAFLAG_IN, &ifrcopy) < 0)
+ goto gotError;
+ if (ifrcopy.ifr_addrflags & (IN_IFF_NOTREADY | IN_IFF_DETACHED))
+ continue;
+ }
+#endif
#ifdef SIOCGIFAFLAG_IN6
if (ifr->ifr_addr.sa_family == AF_INET6) {
struct in6_ifreq ifr6;
Home |
Main Index |
Thread Index |
Old Index