aboutsummaryrefslogtreecommitdiff
path: root/programs/tsctp.c
diff options
context:
space:
mode:
authortuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2012-05-27 11:10:08 +0000
committertuexen <tuexen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2012-05-27 11:10:08 +0000
commiteda9dbb1fb720ba585d02f22944256326b48185a (patch)
tree5b496c3487f9a327d9c620ee00ebb7f6fd56decd /programs/tsctp.c
parent321502377a5ededbdbc33344e46e5fdb07972eb0 (diff)
downloadusrsctp-eda9dbb1fb720ba585d02f22944256326b48185a.tar.gz
Sync with main sources and add the ulp_info stuff to the apps.
Diffstat (limited to 'programs/tsctp.c')
-rw-r--r--programs/tsctp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/programs/tsctp.c b/programs/tsctp.c
index 902af5dd..f0def527 100644
--- a/programs/tsctp.c
+++ b/programs/tsctp.c
@@ -274,7 +274,7 @@ send_cb(struct socket *sock, uint32_t sb_free) {
static int
receive_cb(struct socket *sock, union sctp_sockstore addr, void *data,
- size_t datalen, struct sctp_rcvinfo rcv, int flags)
+ size_t datalen, struct sctp_rcvinfo rcv, int flags, void *ulp_info)
{
struct timeval now, diff_time;
double seconds;
@@ -518,24 +518,24 @@ int main(int argc, char **argv)
if (client) {
if (use_cb) {
- if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, receive_cb, send_cb, length)) ){
+ if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, receive_cb, send_cb, length, NULL)) ){
printf("user_socket() returned NULL\n");
exit(1);
}
} else {
- if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0)) ){
+ if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0, NULL)) ){
printf("user_socket() returned NULL\n");
exit(1);
}
}
} else {
if (use_cb) {
- if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, receive_cb, NULL, 0)) ){
+ if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, receive_cb, NULL, 0, NULL)) ){
printf("user_socket() returned NULL\n");
exit(1);
}
} else {
- if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0)) ){
+ if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0, NULL)) ){
printf("user_socket() returned NULL\n");
exit(1);
}