summaryrefslogtreecommitdiff
path: root/net/radvd/files/patch-device-bsd44.c
diff options
context:
space:
mode:
authorBabak Farrokhi <farrokhi@FreeBSD.org>2017-01-09 14:50:52 +0000
committerBabak Farrokhi <farrokhi@FreeBSD.org>2017-01-09 14:50:52 +0000
commitb212482040cb0e70bdc5aaf3326a3389481b7293 (patch)
treef034e0caed83dd9b3d0c9ee0da0e9e952b70636a /net/radvd/files/patch-device-bsd44.c
parentdevel/rubygem-sentry-raven: update to 2.3.0 (diff)
Update net/radvd to 2.15
Reviewed by: bapt Approved by: bapt Differential Revision: https://reviews.freebsd.org/D9091
Notes
Notes: svn path=/head/; revision=430966
Diffstat (limited to 'net/radvd/files/patch-device-bsd44.c')
-rw-r--r--net/radvd/files/patch-device-bsd44.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/net/radvd/files/patch-device-bsd44.c b/net/radvd/files/patch-device-bsd44.c
index baccf2a6edaa..957c08e5aaf0 100644
--- a/net/radvd/files/patch-device-bsd44.c
+++ b/net/radvd/files/patch-device-bsd44.c
@@ -1,13 +1,16 @@
---- device-bsd44.c.orig 2014-07-21 07:21:42 UTC
+
+$FreeBSD$
+
+--- device-bsd44.c.orig 2015-11-19 13:58:52 UTC
+++ device-bsd44.c
-@@ -171,6 +171,24 @@ int setup_linklocal_addr(struct Interfac
+@@ -116,6 +116,24 @@ int update_device_info(int sock, struct
- int setup_allrouters_membership(struct Interface *iface)
+ int setup_allrouters_membership(int sock, struct Interface *iface)
{
+ struct ipv6_mreq mreq;
+
+ memset(&mreq, 0, sizeof(mreq));
-+ mreq.ipv6mr_interface = iface->if_index;
++ mreq.ipv6mr_interface = iface->props.if_index;
+
+ /* all-routers multicast address */
+ if (inet_pton(AF_INET6, "ff02::2",
@@ -18,7 +21,7 @@
+
+ if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
+ &mreq, sizeof(mreq)) < 0) {
-+ flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->Name);
++ flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->props.name);
+ return (-1);
+ }
+