aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/socket.h
blob: 4d3161146461ce6980698cb8df8e078abb37f7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _BSC_SOCKET_H
#define _BSC_SOCKET_H

#include <sys/types.h>
#include <osmocore/select.h>

#ifndef IPPROTO_GRE
#define IPPROTO_GRE 47
#endif

int make_sock(struct bsc_fd *bfd, int proto, u_int32_t ip, u_int16_t port,
	      int (*cb)(struct bsc_fd *fd, unsigned int what));

#endif /* _BSC_SOCKET_H */