1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Use struct ip_mreqn' instead of struct ip_mreq' for multicast

operations on 2.1/2.2 kernels. This allows passing of real interface
indexes instead of referencing interfaces by their IP addresses which
fails badly in presence of unnumbered interfaces.

Unfortunately, this structure is not visible with glibc 2.0 as it provides
its own networking headers :-(  Both libc5 and glibc 2.1 should be OK.
This commit is contained in:
Martin Mares
1999-04-12 15:27:56 +00:00
parent 5a99ade413
commit 61fb537c62
4 changed files with 17 additions and 2 deletions

View File

@@ -407,8 +407,7 @@ sk_open(sock *s)
case SK_UDP_MC:
case SK_IP_MC:
{
#ifdef HAVE_IP_MREQN
/* FIXME: Define HAVE_IP_MREQN somewhere :) */
#ifdef HAVE_STRUCT_IP_MREQN
struct ip_mreqn mreq;
#define mreq_add mreq
ASSERT(s->iface);