Commit 73376f4a authored by Leonardo Lai's avatar Leonardo Lai

allow IPPROTO_UDP as alternative to 0 in socket creation

parent d6711f7d
......@@ -38,7 +38,7 @@ static int socket_validate_args(int domain, int type, int protocol)
}
// Protocol must be 0
if (protocol != 0) {
if (protocol != 0 && protocol != IPPROTO_UDP) {
errno = EINVAL;
RTE_LOG(ERR, SYSCALL, "Attemp to create UDPDK socket of unsupported protocol (%d)\n", protocol);
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment