]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Set default protocol for raw sockets in nettest
authorDavid Ahern <dsahern@kernel.org>
Thu, 17 Sep 2020 15:13:33 +0000 (09:13 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 00:07:15 +0000 (17:07 -0700)
commit376d1c03f474969a3ab96cd8cd9ba70ceda0ce6a
treee08a59cef08639b5d0f30d753b51861d9965547e
parent76427c25e457a59b64cab05cbf19485999fb4ca1
selftests: Set default protocol for raw sockets in nettest

IPPROTO_IP (0) is not valid for raw sockets. Default the protocol for
raw sockets to IPPROTO_RAW if the protocol has not been set via the -P
option.

Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/nettest.c