summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/net.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/net.c b/engines/net.c
index 2a9caaa2..8dbc2a85 100644
--- a/engines/net.c
+++ b/engines/net.c
@@ -452,9 +452,11 @@ static int fio_netio_init(struct thread_data *td)
goto bad_host;
if (modep) {
- if (!strncmp("tcp", modep, strlen(modep)))
+ if (!strncmp("tcp", modep, strlen(modep)) ||
+ !strncmp("TCP", modep, strlen(modep)))
nd->net_protocol = IPPROTO_TCP;
- else if (!strncmp("udp", modep, strlen(modep)))
+ else if (!strncmp("udp", modep, strlen(modep)) ||
+ !strncmp("UDP", modep, strlen(modep)))
nd->net_protocol = IPPROTO_UDP;
else
goto bad_host;