server: add ETA as a specific command
[fio.git] / engines / net.c
index 0566a618254638f77bedc5d46c2ec80c3eb8ac73..6866ba2d840465a0dfbeb85372016704c22c5ace 100644 (file)
@@ -280,7 +280,11 @@ static int fio_netio_recv(struct thread_data *td, struct io_u *io_u)
 
        do {
                if (nd->net_protocol == IPPROTO_UDP) {
+#ifdef __hpux
+                       int len = sizeof(nd->addr);
+#else
                        socklen_t len = sizeof(nd->addr);
+#endif
                        struct sockaddr *from = (struct sockaddr *) &nd->addr;
 
                        ret = recvfrom(io_u->file->fd, io_u->xfer_buf,
@@ -377,7 +381,11 @@ static int fio_netio_connect(struct thread_data *td, struct fio_file *f)
 static int fio_netio_accept(struct thread_data *td, struct fio_file *f)
 {
        struct netio_data *nd = td->io_ops->data;
+#ifdef __hpux
+       int socklen = sizeof(nd->addr);
+#else
        socklen_t socklen = sizeof(nd->addr);
+#endif
 
        if (nd->net_protocol == IPPROTO_UDP) {
                f->fd = nd->listenfd;
@@ -633,7 +641,7 @@ static struct ioengine_ops ioengine_splice = {
        .open_file      = fio_netio_open_file,
        .close_file     = generic_close_file,
        .flags          = FIO_SYNCIO | FIO_DISKLESSIO | FIO_UNIDIR |
-                         FIO_SIGQUIT | FIO_PIPEIO,
+                         FIO_SIGTERM | FIO_PIPEIO,
 };
 #endif
 
@@ -648,7 +656,7 @@ static struct ioengine_ops ioengine_rw = {
        .open_file      = fio_netio_open_file,
        .close_file     = fio_netio_close_file,
        .flags          = FIO_SYNCIO | FIO_DISKLESSIO | FIO_UNIDIR |
-                         FIO_SIGQUIT | FIO_PIPEIO,
+                         FIO_SIGTERM | FIO_PIPEIO,
 };
 
 static void fio_init fio_netio_register(void)