6#include <osmocom/core/socket.h>
11#include <netinet/sctp.h>
12 #define OSMO_STREAM_MAX_ADDRS OSMO_SOCK_MAX_ADDRS
18 #define MSG_NOSIGNAL 0
21 #define OSMO_STREAM_MAX_ADDRS 1
26enum osmo_stream_mode {
27 OSMO_STREAM_MODE_UNKNOWN,
28 OSMO_STREAM_MODE_OSMO_FD,
29 OSMO_STREAM_MODE_OSMO_IO,
35int stream_sctp_sock_activate_events(
int fd);
36int stream_setsockopt_nodelay(
int fd,
int proto,
int on);
37int stream_sctp_recvmsg_wrapper(
int fd,
struct msgb *msg,
const char *log_pfx);
39int stream_iofd_sctp_send_msgb(
struct osmo_io_fd *iofd,
struct msgb *msg,
int sendmsg_flags);
40int stream_iofd_sctp_recvmsg_trailer(
struct osmo_io_fd *iofd,
struct msgb *msg,
int ret,
const struct msghdr *msgh);