]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Move address validation in nettest
authorDavid Ahern <dsahern@gmail.com>
Thu, 14 Jan 2021 03:09:39 +0000 (20:09 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 00:26:47 +0000 (16:26 -0800)
commit81c30054d5ae26cbd1e2e44d8fd513e8dc1a031c
treef1768de6d123c535877de432e8da84ee4af851cb
parent50a78a0a75ab556d6434bdb6c2041e111f6dd14a
selftests: Move address validation in nettest

IPv6 addresses can have a device name to declare a scope (e.g.,
fe80::5054:ff:fe12:3456%eth0). The next patch adds support to
switch network namespace before running client or server code
(or both), so move the address validation to the server and
client functions.

IPv4 multicast groups do not have the device scope in the address
specification, so they can be validated inline with option parsing.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/nettest.c