<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/net/nettest.c, branch linux-5.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-01-02T23:51:22Z</updated>
<entry>
<title>nettest: Add support for TCP_MD5 extensions</title>
<updated>2020-01-02T23:51:22Z</updated>
<author>
<name>David Ahern</name>
</author>
<published>2019-12-30T22:14:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb09cf03b9bde3a08015b46119d0f594b250001f'/>
<id>urn:sha1:eb09cf03b9bde3a08015b46119d0f594b250001f</id>
<content type='text'>
Update nettest to implement TCP_MD5SIG_EXT for a prefix and a device.

Add a new option, -m, to specify a prefix and length to use with MD5
auth. The device option comes from the existing -d option. If either
are set and MD5 auth is requested, TCP_MD5SIG_EXT is used instead of
TCP_MD5SIG.

Signed-off-by: David Ahern &lt;dsahern@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>nettest: Return 1 on MD5 failure for server mode</title>
<updated>2020-01-02T23:51:22Z</updated>
<author>
<name>David Ahern</name>
</author>
<published>2019-12-30T22:14:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1bfb45d860d8360322656131eac51772fec6fc8c'/>
<id>urn:sha1:1bfb45d860d8360322656131eac51772fec6fc8c</id>
<content type='text'>
On failure to set MD5 password, do_server should return 1 so that the
program exits with 1 rather than 255. This used for negative testing
when adding MD5 with device option.

Signed-off-by: David Ahern &lt;dsahern@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: Fix get_ifidx and callers in nettest.c</title>
<updated>2019-08-16T22:25:34Z</updated>
<author>
<name>David Ahern</name>
</author>
<published>2019-08-14T17:11:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87caaaf2d19d4656924241aadb612782c296928f'/>
<id>urn:sha1:87caaaf2d19d4656924241aadb612782c296928f</id>
<content type='text'>
Dan reported:

    The patch acda655fefae: "selftests: Add nettest" from Aug 1, 2019,
    leads to the following static checker warning:

            ./tools/testing/selftests/net/nettest.c:1690 main()
            warn: unsigned 'tmp' is never less than zero.

    ./tools/testing/selftests/net/nettest.c
      1680                  case '1':
      1681                          args.has_expected_raddr = 1;
      1682                          if (convert_addr(&amp;args, optarg,
      1683                                           ADDR_TYPE_EXPECTED_REMOTE))
      1684                                  return 1;
      1685
      1686                          break;
      1687                  case '2':
      1688                          if (str_to_uint(optarg, 0, 0x7ffffff, &amp;tmp) != 0) {
      1689                                  tmp = get_ifidx(optarg);
      1690                                  if (tmp &lt; 0) {

    "tmp" is unsigned so it can't be negative.  Also all the callers assume
    that get_ifidx() returns negatives on error but it looks like it really
    returns zero on error so it's a bit unclear to me.

Update get_ifidx to return -1 on errors and cleanup callers of it.

Fixes: acda655fefae ("selftests: Add nettest")
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: David Ahern &lt;dsahern@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>][next] selftests: nettest: fix spelling mistake: "potocol" -&gt; "protocol"</title>
<updated>2019-08-05T17:27:53Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2019-08-05T10:52:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9e21bea1f815c2ec917ecc0efe0a7049c825d5b'/>
<id>urn:sha1:a9e21bea1f815c2ec917ecc0efe0a7049c825d5b</id>
<content type='text'>
There is a spelling mistake in an error messgae. Fix it.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Acked-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: Add nettest</title>
<updated>2019-08-03T17:42:04Z</updated>
<author>
<name>David Ahern</name>
</author>
<published>2019-08-01T18:56:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=acda655fefae352a48eec87c8f8487de1608a48b'/>
<id>urn:sha1:acda655fefae352a48eec87c8f8487de1608a48b</id>
<content type='text'>
Add nettest - a simple program with an implementation for various networking
APIs. nettest is used for tcp, udp and raw functional tests for both IPv4
and IPv6.

Point of this command versus existing utilities:
- controlled implementation of the APIs and the order in which they
  are called,
- ability to verify ingress device, local and remote addresses,
- timeout for controlled test length,
- ability to discriminate a timeout from a system call failure, and
- simplicity with test scripts.

The command returns:
  0  on success,
  1  for any system call failure, and
  2  on timeout.

Signed-off-by: David Ahern &lt;dsahern@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
