diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-07-04 23:08:44 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-07-12 23:17:10 +0000 |
commit | 29b9206e804e8e5d5f6ea6f9d8c1f8af35332480 (patch) | |
tree | 77eed5bde035b276b63f92c0f23e944049e59897 /include/openbsc/socket.h | |
parent | 9e3c66b1814246f6c06a6f78975f54dfe9e2cf8c (diff) |
move openbsc/* to repos root
This is the first step in creating this repository from the legacy openbsc.git.
Like all other Osmocom repositories, keep the autoconf and automake files in
the repository root. openbsc.git has been the sole exception, which ends now.
Change-Id: I9c6f2a448d9cb1cc088cf1cf6918b69d7e69b4e7
Diffstat (limited to 'include/openbsc/socket.h')
-rw-r--r-- | include/openbsc/socket.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/openbsc/socket.h b/include/openbsc/socket.h new file mode 100644 index 000000000..0fd85f104 --- /dev/null +++ b/include/openbsc/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 */ |