I am trying to setup net/radvd on FreeBSD 11.0-p10, but it always gives an error:
.
Running
The interface bce0 is configured as:
Radvd is configured with:
The error is generated at device-bsd44.c line 142
The setsockopt call returns EINVAL!
Has anyone managed to get net/radvd version 2.16 working on FreeBSD 11.0?
Code:
can't join ipv6-allrouters on bce0
Running
/usr/local/sbin/radvd -d5
gives the following output:
Code:
May 3 15:04:58 mail radvd[7222]: ioctl(SIOCGIFFLAGS) succeeded on bce0
May 3 15:04:58 mail radvd[7222]: bce0 is up
May 3 15:04:58 mail radvd[7222]: bce0 is running
May 3 15:04:58 mail radvd[7222]: bce0 supports multicast
May 3 15:04:58 mail radvd[7222]: ioctl(SIOCGIFFLAGS) succeeded on bce0
May 3 15:04:58 mail radvd[7222]: bce0 is up
May 3 15:04:58 mail radvd[7222]: bce0 is running
May 3 15:04:58 mail radvd[7222]: bce0 supports multicast
May 3 15:04:58 mail radvd[7222]: can't join ipv6-allrouters on bce0
May 3 15:05:14 mail radvd[7222]: ioctl(SIOCGIFFLAGS) succeeded on bce0
May 3 15:05:14 mail radvd[7222]: bce0 is up
May 3 15:05:14 mail radvd[7222]: bce0 is running
May 3 15:05:14 mail radvd[7222]: bce0 supports multicast
May 3 15:05:14 mail radvd[7222]: can't join ipv6-allrouters on bce0
The interface bce0 is configured as:
Code:
bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether f0:4d:xx:xx:xx:xx
inet 192.168.0.12 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::xxxx:xxxx:xxxx:xxxx%bce0 prefixlen 64 scopeid 0x1
inet6 2001:123:4567:89a::1 prefixlen 64
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex,master>)
status: active
Code:
interface bce0 {
AdvSendAdvert on;
AdvManagedFlag off;
AdvOtherConfigFlag off;
prefix 2001:123:4567:89a::1/64
{
AdvOnLink on;
AdvAutonomous on;
};
clients
{
fe80::xxxx:xxx:xxxx:xxxx;
};
};
The error is generated at device-bsd44.c line 142
Code:
if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
&mreq, sizeof(mreq)) < 0) {
flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->props.n
ame);
return (-1);
}
Has anyone managed to get net/radvd version 2.16 working on FreeBSD 11.0?