X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fnet.c;h=468bc7c81746a8f73935903e8c99d3990c2286e1;hb=7956f141c058cdd95f14491ee646b7f7951ab2ab;hp=636939ea932c86025a8aa733a1327a313e374b92;hpb=e65a950ab73d7d91f267ad7f7b084d94e266fcb0;p=fio.git diff --git a/engines/net.c b/engines/net.c index 636939ea..468bc7c8 100644 --- a/engines/net.c +++ b/engines/net.c @@ -85,7 +85,7 @@ static struct fio_option options[] = { }, { .ival = "udp", .oval = FIO_TYPE_UDP, - .help = "Unreliable Datagram Protocol", + .help = "User Datagram Protocol", }, { .ival = "unix", .oval = FIO_TYPE_UNIX, @@ -152,7 +152,7 @@ static int fio_netio_prep(struct thread_data *td, struct io_u *io_u) td_verror(td, EINVAL, "bad direction"); return 1; } - + return 0; } @@ -695,6 +695,11 @@ static int fio_netio_init(struct thread_data *td) struct netio_options *o = td->eo; int ret; +#ifdef WIN32 + WSADATA wsd; + WSAStartup(MAKEWORD(2,2), &wsd); +#endif + if (td_random(td)) { log_err("fio: network IO can't be random\n"); return 1;