Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Commit

Permalink
Fixes #2878 Try to unregister from group and rejoin it
Browse files Browse the repository at this point in the history
  • Loading branch information
Ermal committed Mar 18, 2013
1 parent b9575f1 commit f760897
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pfPorts/radvd/files/patch-device-bsd44.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- ./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 @@
--- device-bsd44.c.orig 2013-03-18 13:27:42.000000000 +0000
+++ device-bsd44.c 2013-03-18 13:28:32.000000000 +0000
@@ -322,6 +322,27 @@

int setup_allrouters_membership(struct Interface *iface)
{
Expand All @@ -16,6 +16,9 @@
+ return (-1);
+ }
+
+ /* XXX: See pfSense ticket #2878 */
+ setsockopt(sock, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq));
+
+ if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
+ &mreq, sizeof(mreq)) < 0) {
+ flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->Name);
Expand Down

0 comments on commit f760897

Please sign in to comment.