summaryrefslogtreecommitdiff
path: root/src/mcast.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-05-27 20:23:19 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-05-27 20:23:19 +0200
commit96fad1b1ca9e6e34e439cdb9eaecb765fb107ea8 (patch)
treee2369349d7a3dead7cb251e8c139ce5d987d03f6 /src/mcast.c
parentb21dae5470ad8dae5215c977ffe44afa8d248bf6 (diff)
downloadconntrack-tools-96fad1b1ca9e6e34e439cdb9eaecb765fb107ea8.tar.gz
conntrack-tools-96fad1b1ca9e6e34e439cdb9eaecb765fb107ea8.zip
define SO_[RCV|SND]BUFFORCE if not set
Diffstat (limited to 'src/mcast.c')
-rw-r--r--src/mcast.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mcast.c b/src/mcast.c
index 16d8856..2bb8743 100644
--- a/src/mcast.c
+++ b/src/mcast.c
@@ -98,6 +98,10 @@ struct mcast_sock *mcast_server_create(struct mcast_conf *conf)
return NULL;
}
+#ifndef SO_RCVBUFFORCE
+#define SO_RCVBUFFORCE 33
+#endif
+
if (conf->rcvbuf &&
setsockopt(m->fd, SOL_SOCKET, SO_RCVBUFFORCE, &conf->rcvbuf,
sizeof(int)) == -1) {
@@ -232,6 +236,10 @@ struct mcast_sock *mcast_client_create(struct mcast_conf *conf)
return NULL;
}
+#ifndef SO_SNDBUFFORCE
+#define SO_SNDBUFFORCE 32
+#endif
+
if (conf->sndbuf &&
setsockopt(m->fd, SOL_SOCKET, SO_SNDBUFFORCE, &conf->sndbuf,
sizeof(int)) == -1) {