freebsd-ports/net/radvd/files/patch-interface.c
Babak Farrokhi 1cbc4a6ff6 net/radvd: improve FreeBSD multicast patch for version 12 and up
PR:		252877
Submitted by:	Franco Fichtner <franco@opnsense.org>
2021-02-05 00:54:20 +00:00

23 lines
598 B
C

--- 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;
}