2010-05-19 12:11:05 +00:00
|
|
|
#ifndef _BSC_SOCKET_H
|
|
|
|
#define _BSC_SOCKET_H
|
|
|
|
|
2011-03-22 15:47:59 +00:00
|
|
|
#include <osmocom/core/select.h>
|
2010-05-19 12:11:05 +00:00
|
|
|
|
|
|
|
#ifndef IPPROTO_GRE
|
|
|
|
#define IPPROTO_GRE 47
|
|
|
|
#endif
|
|
|
|
|
2011-05-06 10:11:23 +00:00
|
|
|
int make_sock(struct osmo_fd *bfd, int proto,
|
2011-04-18 15:04:00 +00:00
|
|
|
uint32_t ip, uint16_t port, int priv_nr,
|
2011-05-06 10:11:23 +00:00
|
|
|
int (*cb)(struct osmo_fd *fd, unsigned int what), void *data);
|
2010-05-19 12:11:05 +00:00
|
|
|
|
|
|
|
#endif /* _BSC_SOCKET_H */
|