From eb2323108392e65ab7c4e4c5cbd74a1597b60187 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 24 Jan 2014 18:59:15 -0800 Subject: [PATCH] engine: protect net engine IPv6 support with configure check Signed-off-by: Jens Axboe --- engines/net.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/net.c b/engines/net.c index 4be106a2..1dc55d5e 100644 --- a/engines/net.c +++ b/engines/net.c @@ -94,18 +94,22 @@ static struct fio_option options[] = { .oval = FIO_TYPE_TCP, .help = "Transmission Control Protocol", }, +#ifdef CONFIG_IPV6 { .ival = "tcpv6", .oval = FIO_TYPE_TCP_V6, .help = "Transmission Control Protocol V6", }, +#endif { .ival = "udp", .oval = FIO_TYPE_UDP, .help = "User Datagram Protocol", }, +#ifdef CONFIG_IPV6 { .ival = "udpv6", .oval = FIO_TYPE_UDP_V6, .help = "User Datagram Protocol V6", }, +#endif { .ival = "unix", .oval = FIO_TYPE_UNIX, .help = "UNIX domain socket", -- 2.25.1