diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-01 11:10:11 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-01 11:10:11 +0200 |
commit | 402a9fa78a9849dbbefcbea81cd9cf7c8ab87c22 (patch) | |
tree | ecfd020751d06c1e1d831d69e37c7b0680f20901 /sysdep/bsd | |
parent | e85bd57a0e106c7ae3fc44dccf9bac89e2f9939e (diff) | |
download | bird-402a9fa78a9849dbbefcbea81cd9cf7c8ab87c22.tar bird-402a9fa78a9849dbbefcbea81cd9cf7c8ab87c22.zip |
Useles log()s deleted.
Diffstat (limited to 'sysdep/bsd')
-rw-r--r-- | sysdep/bsd/sysio.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sysdep/bsd/sysio.h b/sysdep/bsd/sysio.h index 399cbcd..b2dc3a2 100644 --- a/sysdep/bsd/sysio.h +++ b/sysdep/bsd/sysio.h @@ -34,15 +34,11 @@ sysio_mcast_setup(sock * s) if (ipa_nonzero(s->daddr)) { - if (setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_LOOP, &zero, sizeof(zero)) < 0) { - log("IP_MULTICAST_LOOP"); + if (setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_LOOP, &zero, sizeof(zero)) < 0) return "IP_MULTICAST_LOOP"; - } - if (setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_TTL, &one, sizeof(one)) < 0) { - log("IP_MULTICAST_TTL"); + if (setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_TTL, &one, sizeof(one)) < 0) return "IP_MULTICAST_TTL"; - } } return NULL; } @@ -62,17 +58,14 @@ sysio_mcast_join(sock * s) set_inaddr(&mreq.imr_multiaddr, s->daddr); /* And this one sets interface for _receiving_ multicasts from */ - if (ipa_nonzero(s->daddr) && setsockopt(s->fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) { - log("IP_ADD_MEMBERSHIP"); + if (ipa_nonzero(s->daddr) && + setsockopt(s->fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) return "IP_ADD_MEMBERSHIP"; - } /* This defines where should we send _outgoing_ multicasts */ - if (ipa_nonzero(s->daddr) && setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_IF, &m, sizeof(m)) < 0) { - log("IP_MULTICAST_IF"); + if (ipa_nonzero(s->daddr) && setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_IF, &m, sizeof(m)) < 0) return "IP_MULTICAST_IF"; - } if (err = sysio_mcast_setup(s)) return err; |