author | Tero Marttila <terom@fixme.fi> |
Sun, 16 Aug 2009 16:38:44 +0300 | |
changeset 5 | 59bed837c265 |
parent 3 | bbad9790b786 |
permissions | -rw-r--r-- |
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
1 |
cimport libc |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
2 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
3 |
from libc cimport __u8, __u16, __u32, __s8, __s16, __s32 |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
4 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
5 |
# <netinet/sctp.h> |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
6 |
# this defines the kernel SCTP -> userspace API extensions, such as structure types etc. |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
7 |
cdef extern from "netinet/sctp.h" : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
8 |
## types |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
9 |
ctypedef __s32 sctp_assoc_t |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
10 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
11 |
## constants |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
12 |
# sockapi |
5 | 13 |
enum : |
14 |
SOL_SCTP |
|
15 |
IPPROTO_SCTP |
|
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
16 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
17 |
# sockopts |
5 | 18 |
enum : |
19 |
SCTP_RTOINFO |
|
20 |
SCTP_ASSOCINFO |
|
21 |
SCTP_INITMSG |
|
22 |
SCTP_NODELAY |
|
23 |
SCTP_AUTOCLOSE |
|
24 |
SCTP_SET_PEER_PRIMARY_ADDR |
|
25 |
SCTP_PRIMARY_ADDR |
|
26 |
SCTP_ADAPTATION_LAYER |
|
27 |
SCTP_DISABLE_FRAGMENTS |
|
28 |
SCTP_PEER_ADDR_PARAMS |
|
29 |
SCTP_DEFAULT_SEND_PARAM |
|
30 |
SCTP_EVENTS |
|
31 |
SCTP_I_WANT_MAPPED_V4_ADDR |
|
32 |
SCTP_MAXSEG |
|
33 |
SCTP_STATUS |
|
34 |
SCTP_GET_PEER_ADDR_INFO |
|
35 |
SCTP_DELAYED_ACK_TIME |
|
36 |
SCTP_CONTEXT |
|
37 |
SCTP_FRAGMENT_INTERLEAVE |
|
38 |
SCTP_PARTIAL_DELIVERY_POINT |
|
39 |
SCTP_MAX_BURST |
|
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
40 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
41 |
## send/recv-msg cmsghdr's |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
42 |
struct sctp_initmsg : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
43 |
__u16 sinit_num_ostreams |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
44 |
__u16 sinit_max_instreams |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
45 |
__u16 sinit_max_attempts |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
46 |
__u16 sinit_max_init_timeo |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
47 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
48 |
struct sctp_sndrcvinfo : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
49 |
__u16 sinfo_stream |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
50 |
__u16 sinfo_ssn |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
51 |
__u16 sinfo_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
52 |
__u32 sinfo_ppid |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
53 |
__u32 sinfo_context |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
54 |
__u32 sinfo_timetolive |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
55 |
__u32 sinfo_tsn |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
56 |
__u32 sinfo_cumtsn |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
57 |
sctp_assoc_t sinfo_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
58 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
59 |
# sctp_sndrcvinfo.sinfo_flags values |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
60 |
enum sctp_sinfo_flags : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
61 |
SCTP_UNORDERED # Send/receive message unordered |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
62 |
SCTP_ADDR_OVER # Override the primary destination |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
63 |
SCTP_ABORT # Send an ABORT message to the peer |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
64 |
SCTP_EOF # Initiate graceful shutdown process |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
65 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
66 |
## notifications |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
67 |
struct sctp_assoc_change : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
68 |
__u16 sac_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
69 |
__u16 sac_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
70 |
__u32 sac_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
71 |
__u16 sac_state |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
72 |
__u16 sac_error |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
73 |
__u16 sac_outbound_streams |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
74 |
__u16 sac_inbound_streams |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
75 |
sctp_assoc_t sac_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
76 |
__u8 sac_info[0] |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
77 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
78 |
# sctp_assoc_change.sac_state |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
79 |
enum sctp_sac_state : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
80 |
SCTP_COMM_UP |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
81 |
SCTP_COMM_LOST |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
82 |
SCTP_RESTART |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
83 |
SCTP_SHUTDOWN_COMP |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
84 |
SCTP_CANT_STR_ASSOC |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
85 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
86 |
struct sctp_paddr_change : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
87 |
__u16 spc_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
88 |
__u16 spc_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
89 |
__u32 spc_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
90 |
libc.sockaddr_storage spc_aaddr |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
91 |
int spc_state |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
92 |
int spc_error |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
93 |
sctp_assoc_t spc_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
94 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
95 |
enum sctp_spc_state : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
96 |
SCTP_ADDR_AVAILABLE |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
97 |
SCTP_ADDR_UNREACHABLE |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
98 |
SCTP_ADDR_REMOVED |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
99 |
SCTP_ADDR_ADDED |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
100 |
SCTP_ADDR_MADE_PRIM |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
101 |
SCTP_ADDR_CONFIRMED |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
102 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
103 |
struct sctp_remote_error : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
104 |
__u16 sre_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
105 |
__u16 sre_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
106 |
__u32 sre_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
107 |
__u16 sre_error |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
108 |
sctp_assoc_t sre_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
109 |
__u8 sre_data[0] |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
110 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
111 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
112 |
struct sctp_send_failed : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
113 |
__u16 ssf_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
114 |
__u16 ssf_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
115 |
__u32 ssf_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
116 |
__u32 ssf_error |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
117 |
sctp_sndrcvinfo ssf_info |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
118 |
sctp_assoc_t ssf_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
119 |
__u8 ssf_data[0] |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
120 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
121 |
enum sctp_ssf_flags : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
122 |
SCTP_DATA_UNSENT |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
123 |
SCTP_DATA_SENT |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
124 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
125 |
struct sctp_shutdown_event : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
126 |
__u16 sse_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
127 |
__u16 sse_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
128 |
__u32 sse_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
129 |
sctp_assoc_t sse_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
130 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
131 |
struct sctp_adaptation_event : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
132 |
__u16 sai_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
133 |
__u16 sai_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
134 |
__u32 sai_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
135 |
__u32 sai_adaptation_ind |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
136 |
sctp_assoc_t sai_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
137 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
138 |
struct sctp_pdapi_event : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
139 |
__u16 pdapi_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
140 |
__u16 pdapi_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
141 |
__u32 pdapi_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
142 |
__u32 pdapi_indication |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
143 |
sctp_assoc_t pdapi_assoc_id |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
144 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
145 |
enum : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
146 |
SCTP_PARTIAL_DELIVERY_ABORTED |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
147 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
148 |
struct sctp_event_subscribe : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
149 |
__u8 sctp_data_io_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
150 |
__u8 sctp_association_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
151 |
__u8 sctp_address_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
152 |
__u8 sctp_send_failure_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
153 |
__u8 sctp_peer_error_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
154 |
__u8 sctp_shutdown_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
155 |
__u8 sctp_partial_delivery_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
156 |
__u8 sctp_adaptation_layer_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
157 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
158 |
struct sn_header : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
159 |
__u16 sn_type |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
160 |
__u16 sn_flags |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
161 |
__u32 sn_length |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
162 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
163 |
union sctp_notification : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
164 |
sn_header sn_header |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
165 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
166 |
sctp_assoc_change sn_assoc_change |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
167 |
sctp_paddr_change sn_paddr_change |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
168 |
sctp_remote_error sn_remote_error |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
169 |
sctp_send_failed sn_send_failed |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
170 |
sctp_shutdown_event sn_shutdown_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
171 |
sctp_adaptation_event sn_adaptation_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
172 |
sctp_pdapi_event sn_pdapi_event |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
173 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
174 |
enum sctp_sn_type : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
175 |
SCTP_SN_TYPE_BASE |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
176 |
SCTP_ASSOC_CHANGE |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
177 |
SCTP_PEER_ADDR_CHANGE |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
178 |
SCTP_SEND_FAILED |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
179 |
SCTP_REMOTE_ERROR |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
180 |
SCTP_SHUTDOWN_EVENT |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
181 |
SCTP_PARTIAL_DELIVERY_EVENT |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
182 |
SCTP_ADAPTATION_INDICATION |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
183 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
184 |
enum sctp_sn_error : |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
185 |
SCTP_FAILED_THRESHOLD |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
186 |
SCTP_RECEIVED_SACK |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
187 |
SCTP_HEARTBEAT_SUCCESS |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
188 |
SCTP_RESPONSE_TO_USER_REQ |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
189 |
SCTP_INTERNAL_ERROR |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
190 |
SCTP_SHUTDOWN_GUARD_EXPIRES |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
191 |
SCTP_PEER_FAULTY |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
192 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
193 |
ctypedef sctp_sn_error sctp_sn_error_t |
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
194 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
195 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
196 |
## sctp_bindx |
5 | 197 |
enum : |
198 |
SCTP_BINDX_ADD_ADDR |
|
199 |
SCTP_BINDX_REM_ADDR |
|
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
200 |
|
2
171e77f8d675
re-implement sctp_bindx using new sock_addr
Tero Marttila <terom@fixme.fi>
parents:
1
diff
changeset
|
201 |
int c_sctp_bindx "sctp_bindx" (int sd, libc.sockaddr *addrs, int addrcnt, int flags) |
5 | 202 |
|
203 |
# XXX: missing return-sctp_assoc_t-id argument! |
|
204 |
int c_sctp_connectx "sctp_connectx" (int sd, libc.sockaddr *addrs, int addrcnt) |
|
1
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
205 |
|
0ca9278146d7
move pxd's to inc dir, split off sctp.pxd
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
206 |