diff options
author | Dennis Herrmann <dhn@FreeBSD.org> | 2011-07-09 09:49:16 +0000 |
---|---|---|
committer | Dennis Herrmann <dhn@FreeBSD.org> | 2011-07-09 09:49:16 +0000 |
commit | eec4114162c06cb5b592ecc0a3487ebd2189a1a0 (patch) | |
tree | f6583fb32244f6826fd3e2d48607dca02b7a7bac /net/radvd | |
parent | 71ab9b08fa50e0e98ce7ae0a3530e53660e7e942 (diff) | |
download | ports-eec4114162c06cb5b592ecc0a3487ebd2189a1a0.tar.gz ports-eec4114162c06cb5b592ecc0a3487ebd2189a1a0.zip |
Notes
Diffstat (limited to 'net/radvd')
-rw-r--r-- | net/radvd/files/patch-device-bsd44.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/radvd/files/patch-device-bsd44.c b/net/radvd/files/patch-device-bsd44.c new file mode 100644 index 000000000000..4f36c217a46f --- /dev/null +++ b/net/radvd/files/patch-device-bsd44.c @@ -0,0 +1,27 @@ +--- ./device-bsd44.c.orig 2011-02-26 17:00:23.000000000 +0100 ++++ ./device-bsd44.c 2011-07-08 13:13:44.000000000 +0200 +@@ -189,6 +189,24 @@ + + int setup_allrouters_membership(struct Interface *iface) + { ++ struct ipv6_mreq mreq; ++ ++ memset(&mreq, 0, sizeof(mreq)); ++ mreq.ipv6mr_interface = iface->if_index; ++ ++ /* all-routers multicast address */ ++ if (inet_pton(AF_INET6, "ff02::2", ++ &mreq.ipv6mr_multiaddr.s6_addr) != 1) { ++ flog(LOG_ERR, "inet_pton failed"); ++ return (-1); ++ } ++ ++ if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP, ++ &mreq, sizeof(mreq)) < 0) { ++ flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->Name); ++ return (-1); ++ } ++ + return (0); + } + |