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

CONFIG_SKIP_MC_BIND added.

BSD hates it, Linux needs it.
This commit is contained in:
Ondrej Filip
2004-06-03 08:18:14 +00:00
parent cb4dd4e2f7
commit 7d72aadb8a
7 changed files with 11 additions and 0 deletions

View File

@@ -754,7 +754,11 @@ sk_open(sock *s)
ERR("SO_REUSEADDR");
}
fill_in_sockaddr(&sa, s->saddr, port);
#ifdef CONFIG_SKIP_MC_BIND
if (type == SK_IP && bind(fd, (struct sockaddr *) &sa, sizeof(sa)) < 0)
#else
if (bind(fd, (struct sockaddr *) &sa, sizeof(sa)) < 0)
#endif
ERR("bind");
}
fill_in_sockaddr(&sa, s->daddr, s->dport);