Index: head/net/radvd/Makefile =================================================================== --- head/net/radvd/Makefile (revision 564070) +++ head/net/radvd/Makefile (revision 564071) @@ -1,31 +1,32 @@ # Created by: Patrick Li # $FreeBSD$ PORTNAME= radvd PORTVERSION= 2.19 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.litech.org/radvd/dist/ MAINTAINER= farrokhi@FreeBSD.org COMMENT= Linux/BSD IPv6 router advertisement daemon LICENSE= RADVD LICENSE_NAME= RADVD License LICENSE_FILE= ${WRKSRC}/COPYRIGHT LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept GNU_CONFIGURE= yes USES= gmake pkgconfig CONFIGURE_ARGS= --program-transform-name= USE_RC_SUBR= radvd PORTDOCS= CHANGES COPYRIGHT INTRO.html README TODO OPTIONS_DEFINE= DOCS post-install: ${INSTALL_DATA} ${WRKSRC}/radvd.conf.example ${STAGEDIR}${PREFIX}/etc/radvd.conf.sample ${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S.^.${WRKSRC}/.} ${STAGEDIR}${DOCSDIR} .include Index: head/net/radvd/files/patch-device-bsd44.c =================================================================== --- head/net/radvd/files/patch-device-bsd44.c (revision 564070) +++ head/net/radvd/files/patch-device-bsd44.c (revision 564071) @@ -1,42 +1,40 @@ ---- device-bsd44.c.orig 2018-02-18 22:45:02 UTC +--- device-bsd44.c.orig 2019-07-20 03:58:19 UTC +++ device-bsd44.c -@@ -126,7 +126,31 @@ ret: +@@ -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 we leave unconditionally the join cannot fail */ -+ setsockopt(sock, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq)); -+ + if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP, -+ &mreq, sizeof(mreq)) < 0) { ++ &mreq, sizeof(mreq)) < 0 && !iface->state_info.ready) { + 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) { -@@ -161,5 +185,5 @@ int check_ip6_forwarding(void) + 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; } Index: head/net/radvd/files/patch-interface.c =================================================================== --- head/net/radvd/files/patch-interface.c (nonexistent) +++ head/net/radvd/files/patch-interface.c (revision 564071) @@ -0,0 +1,23 @@ +--- interface.c.orig 2020-12-29 09:42:21 UTC ++++ interface.c +@@ -61,6 +61,8 @@ void touch_iface(struct Interface *iface) + + int setup_iface(int sock, struct Interface *iface) + { ++ int was_ready = iface->state_info.ready; ++ + iface->state_info.changed = 0; + iface->state_info.ready = 0; + +@@ -97,8 +99,11 @@ int setup_iface(int sock, struct Interface *iface) + return -1; + } + ++ iface->state_info.ready = was_ready; ++ + /* join the allrouters multicast group so we get the solicitations */ + if (setup_allrouters_membership(sock, iface) < 0) { ++ iface->state_info.ready = 0; + return -1; + } + Property changes on: head/net/radvd/files/patch-interface.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property