net engine: accept both upper and lowercase tcp/udp.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/engines/net.c b/engines/net.c
index 2a9caaa..8dbc2a8 100644
--- a/engines/net.c
+++ b/engines/net.c
@@ -452,9 +452,11 @@
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;