summaryrefslogtreecommitdiff
path: root/net/radvd/files/patch-device-bsd44.c
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2025-01-04 13:20:25 +0100
committerKurt Jaeger <pi@FreeBSD.org>2025-01-04 13:20:25 +0100
commitc0ea645db3b0021333d4b58777b8a7c16defc052 (patch)
treedd12bcac7c46e807ea8c1c664e40b97f1e6e44ed /net/radvd/files/patch-device-bsd44.c
parentsysutils/appjail: Update to 3.6.0 (diff)
net/radvd: update 2.19 -> 2.20
PR: 283775, 271908 [1] Approved by: farrokhi Submitted by: brd [1] Changes: https://github.com/radvd-project/radvd/blob/master/CHANGES
Diffstat (limited to 'net/radvd/files/patch-device-bsd44.c')
-rw-r--r--net/radvd/files/patch-device-bsd44.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/net/radvd/files/patch-device-bsd44.c b/net/radvd/files/patch-device-bsd44.c
deleted file mode 100644
index 003e0a30de5f..000000000000
--- a/net/radvd/files/patch-device-bsd44.c
+++ /dev/null
@@ -1,40 +0,0 @@
---- device-bsd44.c.orig 2019-07-20 03:58:19 UTC
-+++ device-bsd44.c
-@@ -126,8 +126,29 @@ ret:
- return -1;
- }
-
--int setup_allrouters_membership(int sock, struct Interface *iface) { return 0; }
-+int setup_allrouters_membership(int sock, struct Interface *iface)
-+{
-+ struct ipv6_mreq mreq;
-
-+ memset(&mreq, 0, sizeof(mreq));
-+ mreq.ipv6mr_interface = iface->props.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 && errno != EADDRINUSE) {
-+ flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->props.name);
-+ return (-1);
-+ }
-+
-+ return 0;
-+}
-+
- int set_interface_linkmtu(const char *iface, uint32_t mtu)
- {
- dlog(LOG_DEBUG, 4, "setting LinkMTU (%u) for %s is not supported", mtu, iface);
-@@ -161,5 +182,5 @@ int check_ip6_forwarding(void)
- int check_ip6_iface_forwarding(const char *iface)
- {
- dlog(LOG_DEBUG, 4, "checking ipv6 forwarding of interface not supported");
-- return -1;
-+ return 1;
- }