aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/socket.h
blob: 0fd85f1044ca0b08e6d4a876251de7fcfda4c30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 */