Harald Welte | 3a318ab | 2010-05-19 14:11:05 +0200 | [diff] [blame] | 1 | #ifndef _BSC_SOCKET_H |
| 2 | #define _BSC_SOCKET_H |
| 3 | |
Pablo Neira Ayuso | 136f453 | 2011-03-22 16:47:59 +0100 | [diff] [blame] | 4 | #include <osmocom/core/select.h> |
Harald Welte | 3a318ab | 2010-05-19 14:11:05 +0200 | [diff] [blame] | 5 | |
| 6 | #ifndef IPPROTO_GRE |
| 7 | #define IPPROTO_GRE 47 |
| 8 | #endif |
| 9 | |
Pablo Neira Ayuso | 4db9299 | 2011-05-06 12:11:23 +0200 | [diff] [blame] | 10 | int make_sock(struct osmo_fd *bfd, int proto, |
Holger Hans Peter Freyther | c42ad8b | 2011-04-18 17:04:00 +0200 | [diff] [blame] | 11 | uint32_t ip, uint16_t port, int priv_nr, |
Pablo Neira Ayuso | 4db9299 | 2011-05-06 12:11:23 +0200 | [diff] [blame] | 12 | int (*cb)(struct osmo_fd *fd, unsigned int what), void *data); |
Harald Welte | 3a318ab | 2010-05-19 14:11:05 +0200 | [diff] [blame] | 13 | |
| 14 | #endif /* _BSC_SOCKET_H */ |