summaryrefslogtreecommitdiff
path: root/src/mcast.c
diff options
context:
space:
mode:
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) {