aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/msc/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/msc/socket.h')
-rw-r--r--include/osmocom/msc/socket.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/osmocom/msc/socket.h b/include/osmocom/msc/socket.h
new file mode 100644
index 000000000..0fd85f104
--- /dev/null
+++ b/include/osmocom/msc/socket.h
@@ -0,0 +1,14 @@
+#ifndef _BSC_SOCKET_H
+#define _BSC_SOCKET_H
+
+#include <osmocom/core/select.h>
+
+#ifndef IPPROTO_GRE
+#define IPPROTO_GRE 47
+#endif
+
+int make_sock(struct osmo_fd *bfd, int proto,
+ uint32_t ip, uint16_t port, int priv_nr,
+ int (*cb)(struct osmo_fd *fd, unsigned int what), void *data);
+
+#endif /* _BSC_SOCKET_H */