Hi, >>>>> On Fri, 15 Mar 2013 22:54:42 +0100 (CET) >>>>> "M. Schulte" <m-free...@fuglos.org> said:
m-freebsd> I fear I cannot answer all of these questions. I don't have any IPv6 m-freebsd> addresses configured in rc.conf. Also, I am not using dhcp. Basically m-freebsd> I only have IPv4 networking configured with static addresses -- m-freebsd> neither have I actively _disabled_ IPv6. m-freebsd> This is my ifconfig output: m-freebsd> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 m-freebsd> options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE> m-freebsd> ether 00:16:36:74:20:76 m-freebsd> inet XXX.XXX.XXX.XXX netmask 0xfffffff0 broadcast XXX.XXX.XXX.XXX m-freebsd> inet6 fe80::216:36ff:fe74:2076%re0 prefixlen 64 scopeid 0x2 m-freebsd> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> m-freebsd> media: Ethernet autoselect (100baseTX <full-duplex>) m-freebsd> status: active It seems IPv6 is disabled by IFDISABLED nd6 option. Please try the attached patch to ignore it. Sincerely,
Index: contrib/ntp/ntpd/ntp_io.c diff -u -p contrib/ntp/ntpd/ntp_io.c.orig contrib/ntp/ntpd/ntp_io.c --- contrib/ntp/ntpd/ntp_io.c.orig 2012-10-01 02:28:37.157635135 +0900 +++ contrib/ntp/ntpd/ntp_io.c 2013-03-16 17:30:51.384215167 +0900 @@ -69,6 +69,7 @@ #include <netinet/in.h> #include <net/if_var.h> #include <netinet/in_var.h> +#include <netinet6/nd6.h> #endif /* !INCLUDE_IPV6_SUPPORT */ extern int listen_to_virtual_ips; @@ -1202,6 +1203,28 @@ is_anycast(struct sockaddr *sa, char *na #endif /* !SIOCGIFAFLAG_IN6 || !IN6_IFF_ANYCAST */ return ISC_FALSE; } + +static isc_boolean_t +is_ifdisabled(char *name) +{ +#if defined(SIOCGIFINFO_IN6) && defined(ND6_IFF_IFDISABLED) + struct in6_ndireq nd; + int fd; + + if ((fd = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) + return ISC_FALSE; + memset(&nd, 0, sizeof(nd)); + strlcpy(nd.ifname, name, sizeof(nd.ifname)); + if (ioctl(fd, SIOCGIFINFO_IN6, &nd) < 0) { + close(fd); + return ISC_FALSE; + } + close(fd); + if ((nd.ndi.flags & ND6_IFF_IFDISABLED) != 0) + return ISC_TRUE; +#endif /* !SIOCGIFAFLAG_IN6 || !IN6_IFF_ANYCAST */ + return ISC_FALSE; +} #endif /* !INCLUDE_IPV6_SUPPORT */ /* @@ -1335,6 +1358,16 @@ update_interfaces( continue; } +#ifdef INCLUDE_IPV6_SUPPORT + if (interface.sin.ss_family == AF_INET6 && + is_ifdisabled(interface.name)) { + DPRINTF(4, + ("skipping interface %s (%s) - IFDISABLED\n", + interface.name, stoa(&interface.sin))); + continue; + } +#endif /* !INCLUDE_IPV6_SUPPORT */ + /* * skip any interfaces UP and bound to a wildcard * address - some dhcp clients produce that in the -- Hajimu UMEMOTO u...@mahoroba.org ume@{,jp.}FreeBSD.org http://www.mahoroba.org/~ume/
_______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"