aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/socket.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-19 14:11:05 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-19 14:11:38 +0200
commit3a318ab9716718a39a6907d012b6f616fe46823d (patch)
tree951b93a4c0f7f248ae5888adc8dff4e54f746662 /openbsc/include/openbsc/socket.h
parent7af4962e071a69a48231abede1701ca65cb620fe (diff)
socket: Add support for GRE sockets
Diffstat (limited to 'openbsc/include/openbsc/socket.h')
-rw-r--r--openbsc/include/openbsc/socket.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/socket.h b/openbsc/include/openbsc/socket.h
new file mode 100644
index 000000000..f2e264ea6
--- /dev/null
+++ b/openbsc/include/openbsc/socket.h
@@ -0,0 +1,14 @@
+#ifndef _BSC_SOCKET_H
+#define _BSC_SOCKET_H
+
+#include <sys/types.h>
+#include <osmocore/select.h>
+
+#ifndef IPPROTO_GRE
+#define IPPROTO_GRE 47
+#endif
+
+int make_sock(struct bsc_fd *bfd, int proto, u_int16_t port,
+ int (*cb)(struct bsc_fd *fd, unsigned int what));
+
+#endif /* _BSC_SOCKET_H */