void ipulog_destroy_handle(struct ipulog_handle *h);
ssize_t ipulog_read(struct ipulog_handle *h,
- unsigned char *buf, size_t len, int timeout);
+ unsigned char *buf, size_t len);
ulog_packet_msg_t *ipulog_get_packet(struct ipulog_handle *h,
const unsigned char *buf,
return 0;
while ((len = ipulog_read(u->libulog_h, u->libulog_buf,
- upi->config_kset->ces[0].u.value, 1))) {
+ upi->config_kset->ces[0].u.value))) {
if (len <= 0) {
if (errno == EAGAIN)
break;
/* do a BLOCKING read on an ipulog handle */
ssize_t ipulog_read(struct ipulog_handle *h, unsigned char *buf,
- size_t len, int timeout)
+ size_t len)
{
return ipulog_netlink_recvfrom(h, buf, len);
}
/* loop receiving packets and handling them over to handle_packet */
for (i = 0; i < atoi(argv[1]); i++) {
- len = ipulog_read(h, buf, MYBUFSIZ, 1);
+ len = ipulog_read(h, buf, MYBUFSIZ);
if (len <= 0) {
ipulog_perror("ulog_test: short read");
exit(1);