1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use libc::{c_int, c_uint};
pub const IPPROTO_SCTP: c_int = 132;
pub const SOCK_SEQPACKET: c_int = 5;
pub const SCTP_BINDX_ADD_ADDR: c_int = 0x01;
pub const SCTP_BINDX_REM_ADDR: c_int = 0x02;
pub const SCTP_EOF: u16 = 0x0100;
pub const SCTP_ABORT: u16 = 0x0200;
pub const SCTP_UNORDERED: u16 = 0x0400;
pub const SCTP_ADDR_OVER: u16 = 0x0800;
pub const SCTP_SENDALL: u16 = 0x1000;
pub const SCTP_PR_SCTP_TTL: u16 = 0x0001;
pub const SCTP_PR_SCTP_BUF: u16 = 0x0002;
pub const SCTP_PR_SCTP_RTX: u16 = 0x0003;
#[allow(non_camel_case_types)]
pub type sctp_assoc_t = c_uint;
#[derive(Debug, Copy, Clone)]
#[repr(C)]
pub struct sctp_sndrcvinfo {
pub sinfo_stream: u16,
pub sinfo_ssn: u16,
pub sinfo_flags: u16,
pub sinfo_ppid: u32,
pub sinfo_context: u32,
pub sinfo_timetolive: u32,
pub sinfo_tsn: u32,
pub sinfo_cumtsn: u32,
pub sinfo_assoc_id: sctp_assoc_t
}