blob: 0fd85f1044ca0b08e6d4a876251de7fcfda4c30b [file] [log] [blame]
Harald Welte3a318ab2010-05-19 14:11:05 +02001#ifndef _BSC_SOCKET_H
2#define _BSC_SOCKET_H
3
Pablo Neira Ayuso136f4532011-03-22 16:47:59 +01004#include <osmocom/core/select.h>
Harald Welte3a318ab2010-05-19 14:11:05 +02005
6#ifndef IPPROTO_GRE
7#define IPPROTO_GRE 47
8#endif
9
Pablo Neira Ayuso4db92992011-05-06 12:11:23 +020010int make_sock(struct osmo_fd *bfd, int proto,
Holger Hans Peter Freytherc42ad8b2011-04-18 17:04:00 +020011 uint32_t ip, uint16_t port, int priv_nr,
Pablo Neira Ayuso4db92992011-05-06 12:11:23 +020012 int (*cb)(struct osmo_fd *fd, unsigned int what), void *data);
Harald Welte3a318ab2010-05-19 14:11:05 +020013
14#endif /* _BSC_SOCKET_H */