diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-11-12 18:39:51 -0200 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-25 11:46:06 -0200 | 
| commit | 5736139d4a9192c9ba296d2bddc5bbbd025dfd7f (patch) | |
| tree | 8a1fe09a691392f57742f5d04ac47b8d6047724a /zebra/irdp_packet.c | |
| parent | ae735d2d0e13a6babd796ca171519b9db4feaf81 (diff) | |
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/irdp_packet.c')
| -rw-r--r-- | zebra/irdp_packet.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c index 25c7aff26b..290a6180e7 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;  | 
