summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-11-12 21:39:51 +0100
committerRenato Westphal <renato@opensourcerouting.org>2016-11-25 14:46:06 +0100
commit5736139d4a9192c9ba296d2bddc5bbbd025dfd7f (patch)
tree8a1fe09a691392f57742f5d04ac47b8d6047724a /zebra
parentripd: fix race condition on input processing (diff)
downloadfrr-5736139d4a9192c9ba296d2bddc5bbbd025dfd7f.tar.xz
frr-5736139d4a9192c9ba296d2bddc5bbbd025dfd7f.zip
pimd/zebra: fix setting of IP_MULTICAST_LOOP on OpenBSD
Linux, FreeBSD and NetBSD (and possibly others too) accept both uint8_t and int for the IP_MULTICAST_LOOP sockoption. OpenBSD, in the other hand, accepts only uint8_t. To make setting IP_MULTICAST_LOOP work on every supported platform, always pass a uint8_t variable as a parameter. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/irdp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c
index 25c7aff26..290a6180e 100644
--- a/zebra/irdp_packet.c
+++ b/zebra/irdp_packet.c
@@ -282,7 +282,7 @@ send_packet(struct interface *ifp,
char buf[256];
struct in_pktinfo *pktinfo;
u_long src;
- int on;
+ u_char on;
if (!(ifp->flags & IFF_UP))
return;