summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-13 16:02:50 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-13 16:53:37 +0200
commite30d7e6018e2690e7f51c182ab2a4fbaca8dd7cc (patch)
treec34ebdaf2d38039ae4a6f74c27bd6ee4622d71eb /include
parentea91a51ebe8897772e3d1b45e4405c8f9e2fedb0 (diff)
socket.c: Add multicast related convenience functions
Change-Id: Id703e7a7a1e065181a4c76c088b8dcc1b7fe15a2
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/core/socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h
index d2118ef0..6db436ae 100644
--- a/include/osmocom/core/socket.h
+++ b/include/osmocom/core/socket.h
@@ -8,6 +8,7 @@
* \file socket.h */
#include <stdint.h>
+#include <stdbool.h>
struct sockaddr;
struct osmo_fd;
@@ -47,4 +48,9 @@ int osmo_sock_unix_init_ofd(struct osmo_fd *ofd, uint16_t type, uint8_t proto,
char *osmo_sock_get_name(void *ctx, int fd);
+int osmo_sock_mcast_loop_set(int fd, bool enable);
+int osmo_sock_mcast_ttl_set(int fd, uint8_t ttl);
+int osmo_sock_mcast_all_set(int fd, bool enable);
+int osmo_sock_mcast_subscribe(int fd, const char *grp_addr);
+
/*! @} */