3 #include <sys/socket.h>
7 #include <netinet/in.h>
8 #include <netinet/sctp.h>
13 #include "../../memcheck.h"
21 socklen_t tolen
= sizeof (struct sockaddr
);
27 struct sctp_sndrcvinfo sinfo
;
29 size_t undef_size
= 10U;
31 VALGRIND_MAKE_MEM_UNDEFINED(&undef_size
, sizeof(undef_size
));
32 VALGRIND_MAKE_MEM_UNDEFINED(&tolen
, sizeof(tolen
));
34 sctp_sendmsg(conn_fd
, msg
, undef_size
, &to
, tolen
, ppid
, flags
, stream_no
, timetolive
, context
);
36 VALGRIND_MAKE_MEM_NOACCESS(&to
, sizeof(to
));
37 VALGRIND_MAKE_MEM_UNDEFINED(&tolen
, sizeof(tolen
));
38 VALGRIND_MAKE_MEM_NOACCESS(&sinfo
, sizeof(sinfo
));
39 VALGRIND_MAKE_MEM_NOACCESS(&rflags
, sizeof(rflags
));
41 sctp_recvmsg(conn_fd
, buffer
, undef_size
, &to
, &tolen
, &sinfo
, &rflags
);