Page MenuHomeFreeBSD
Feed Advanced Search

Aug 23 2019

D21374: ping: fix include guard symbol name to reflect the header file name is now accepted and ready to land.
Aug 23 2019, 3:23 PM
asomers committed rS351423: ping6: Rename options for better consistency with ping.
ping6: Rename options for better consistency with ping
Aug 23 2019, 3:22 PM
Herald added a reviewer for D21345: ping6: Rename options for unifying option parsing with ping: manpages.
Aug 23 2019, 3:22 PM
asomers added a comment to D21345: ping6: Rename options for unifying option parsing with ping.

One more thing: you should normally add an entry in UPDATING letting people know that the options have changed so they can update their scripts. I'll go ahead and write it this time.

Aug 23 2019, 3:20 PM
D21345: ping6: Rename options for unifying option parsing with ping is now accepted and ready to land.
Aug 23 2019, 3:16 PM

Aug 22 2019

D21367: Fix the build with WITHOUT_GOOGLETEST is now accepted and ready to land.
Aug 22 2019, 7:02 PM
Herald added a reviewer for D21364: ping: do numeric-only output by default: manpages.
Aug 22 2019, 6:57 PM
asomers committed rS351398: ping: By default, don't reverse lookup IP addresses.
ping: By default, don't reverse lookup IP addresses
Aug 22 2019, 6:57 PM
D21364: ping: do numeric-only output by default is now accepted and ready to land.
Aug 22 2019, 6:53 PM
D21364: ping: do numeric-only output by default now requires changes to proceed.
Aug 22 2019, 3:34 PM
asomers committed rS351394: ping6: add a basic functional test.
ping6: add a basic functional test
Aug 22 2019, 3:08 PM
asomers closed D21292: ping6: add a basic test of ping6's functionality.
Aug 22 2019, 3:08 PM
D21292: ping6: add a basic test of ping6's functionality is now accepted and ready to land.

Uhh, the requirement would be that I need to read the entire review, not just the most recent commit.

Aug 22 2019, 3:05 PM
asomers committed rS351393: ping: add a basic functional test.
ping: add a basic functional test
Aug 22 2019, 3:00 PM
asomers closed D21289: ping: add a basic test of ping's functionality.
Aug 22 2019, 3:00 PM
D21289: ping: add a basic test of ping's functionality is now accepted and ready to land.
Aug 22 2019, 2:58 PM
D21292: ping6: add a basic test of ping6's functionality now requires changes to proceed.

Please add a copyright header with a $FreeBSD$ tag to the top of ping6_test.sh. Also, add an entry to etc/mtree/BSD.tests.dist.

Aug 22 2019, 2:21 PM
D21289: ping: add a basic test of ping's functionality now requires changes to proceed.

Please add a copyright header with a $FreeBSD$ tag to the top of ping_test.sh

Aug 22 2019, 2:18 PM
D21289: ping: add a basic test of ping's functionality is now accepted and ready to land.
Aug 22 2019, 2:13 PM
asomers added a comment to D21351: ping: do reverse DNS lookup for a reply by default.
In D21351#464706, @cem wrote:

Hm, I'm not sure I like this being the new default. I guess Linux does it, but there are or used to be many networks where reverse DNS was totally broken (as in, silently dropped). It is nice that ping is mostly a test of IP (ICMP) and not the higher level UDP/TCP protocols DNS uses.

Is there a very short timeout on rDNS lookup failure or on broken networks will ping just hang for 30 seconds at a time?

Aug 22 2019, 12:21 AM

Aug 21 2019

asomers committed rS351354: ping: add -H option for enabling reverse DNS lookup.
ping: add -H option for enabling reverse DNS lookup
Aug 21 2019, 9:05 PM
Herald added a reviewer for D21356: ping: add -H option for enabling reverse DNS lookup: manpages.
Aug 21 2019, 9:05 PM
D21356: ping: add -H option for enabling reverse DNS lookup is now accepted and ready to land.

I'm going to reword the man page entry a bit. Other than that, this change looks good.

Aug 21 2019, 9:02 PM
asomers added a comment to D21292: ping6: add a basic test of ping6's functionality.
In D21292#464559, @sucanjan_gmail.com wrote:

Yes, the TTL will be filtered out. Both ping and ping6 tests will be sending only one packet.

I think it would be good to add -t 1 (timeout in seconds) for one packet just to be sure that the test case will not wait for the reply forever (I don't know if ATF has some timeout).

Aug 21 2019, 8:39 PM
asomers added inline comments to D21327: ping: fix alignment errors.
Aug 21 2019, 8:38 PM
asomers committed rS351330: ping: do reverse DNS lookup of the target address.
ping: do reverse DNS lookup of the target address
Aug 21 2019, 2:52 PM
asomers closed D21351: ping: do reverse DNS lookup for a reply by default.
Aug 21 2019, 2:52 PM
D21351: ping: do reverse DNS lookup for a reply by default is now accepted and ready to land.
Aug 21 2019, 2:51 PM
asomers added a comment to D21338: ping6: make lookup of symbolic names in the reply default.

I would recommend leaving -H in. Even though it's the default, defaults change. Script authors don't like to rely on defaults; they like to specify exactly the behavior that they want.

Aug 21 2019, 2:48 PM
asomers added inline comments to D21327: ping: fix alignment errors.
Aug 21 2019, 2:35 PM
asomers added a comment to D21292: ping6: add a basic test of ping6's functionality.

This looks mostly good, but I have two concerns:

  1. Should you filter out hop limit the same way you filtered out ttl from the ping tests?
  2. The test case takes more than 2 seconds to run. That doesn't sound like much, but it adds up over more than 7000 tests. I suggest reducing the packet count to 1. If you also want to test > 1 packet, then you can add a second test case that requires root privileges and uses -i to reduce the wait.
Aug 21 2019, 2:26 PM
asomers added a comment to D21289: ping: add a basic test of ping's functionality.

This needs a rebase now.

Aug 21 2019, 2:20 PM

Aug 20 2019

asomers committed rS351318: ping: Add tests of the Internet checksum function.
ping: Add tests of the Internet checksum function
Aug 20 2019, 10:00 PM
asomers closed D21340: ping: add tests of the Internet checksum function.
Aug 20 2019, 10:00 PM
D21340: ping: add tests of the Internet checksum function is now accepted and ready to land.
Aug 20 2019, 9:58 PM
asomers added a comment to D21338: ping6: make lookup of symbolic names in the reply default.
In D21338#464272, @sucanjan_gmail.com wrote:

I'm not sure if I understand you correctly.

This is ping's use of F_NUMERIC flag in pr_addr():

	if (options & F_NUMERIC)
		return inet_ntoa(ina);

	hp = cap_gethostbyaddr(capdns, (char *)&ina, 4, AF_INET);

	if (hp == NULL)
		return inet_ntoa(ina);

	(void)snprintf(buf, sizeof(buf), "%s (%s)", hp->h_name,
	    inet_ntoa(ina));
	return(buf);

and this is ping6's use of F_HOSTNAME in pr_addr():

	if ((options & F_HOSTNAME) == 0)
		flag |= NI_NUMERICHOST;

	if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0,
		flag) == 0)
		return (buf);
	else
		return "?";
Aug 20 2019, 6:35 PM
asomers added inline comments to D21340: ping: add tests of the Internet checksum function.
Aug 20 2019, 5:03 PM
D21345: ping6: Rename options for unifying option parsing with ping now requires changes to proceed.
Aug 20 2019, 4:56 PM
asomers added inline comments to D21340: ping: add tests of the Internet checksum function.
Aug 20 2019, 4:31 PM
asomers added a comment to D21338: ping6: make lookup of symbolic names in the reply default.

ping doesn't do reverse lookup. So doesn't this change actually increase the differences between the utilities? I think a better change would be to implement -H for ping.

Aug 20 2019, 4:30 PM
asomers added inline comments to D21327: ping: fix alignment errors.
Aug 20 2019, 4:17 PM
D21340: ping: add tests of the Internet checksum function now requires changes to proceed.

Don't forget to add an entry to etc/mtree/BSD.tests.dist

Aug 20 2019, 3:49 PM
asomers added inline comments to D21289: ping: add a basic test of ping's functionality.
Aug 20 2019, 3:31 PM
asomers added inline comments to D21289: ping: add a basic test of ping's functionality.
Aug 20 2019, 3:25 PM
asomers added a comment to D21289: ping: add a basic test of ping's functionality.

This test is certainly better than nothing. I wish we had something better, but I can't come up with a superior test myself. I'll accept this in lieu of something perfect.

Aug 20 2019, 1:52 AM

Aug 19 2019

asomers added a comment to D21327: ping: fix alignment errors.

That's the whole of the compiler's error output. If you want to reproduce it locally, you should be able to do it with env ARCH=powerpc TARGET_ARCH=powerpc make buildworld. I recommend adding -DNO_CLEAN if you do it more than once. And don't forget the appropriate -j X, or you'll be waiting all day.

Aug 19 2019, 7:32 PM
asomers added a comment to D21327: ping: fix alignment errors.

This change breaks the build on powerpc, powerpc64, and sparc64:

Aug 19 2019, 6:57 PM
asomers closed D21322: ping: fix uninitialized variable warnings when MK_CASPER=no.
Aug 19 2019, 5:54 PM
asomers committed rS351226: Fix uninitialized variable warnings when MK_CASPER=no.
Fix uninitialized variable warnings when MK_CASPER=no
Aug 19 2019, 5:54 PM
D21322: ping: fix uninitialized variable warnings when MK_CASPER=no is now accepted and ready to land.
Aug 19 2019, 5:52 PM
asomers closed D21325: ping: increase buffer size for the string representation of n_time.
Aug 19 2019, 5:28 PM
asomers committed rS351223: ping: fix -Wformat-truncating warning with GCC.
ping: fix -Wformat-truncating warning with GCC
Aug 19 2019, 5:28 PM
D21325: ping: increase buffer size for the string representation of n_time is now accepted and ready to land.
Aug 19 2019, 5:26 PM
asomers committed rS351216: ping6: revert r350857.
ping6: revert r350857
Aug 19 2019, 2:20 PM
asomers closed D21319: ping6: Fix insufficient privileges bug introduced by r350857.
Aug 19 2019, 2:20 PM
D21319: ping6: Fix insufficient privileges bug introduced by r350857 is now accepted and ready to land.
Aug 19 2019, 2:20 PM
asomers added a comment to D21289: ping: add a basic test of ping's functionality.
In D21289#463535, @sucanjan_gmail.com wrote:

It seems that that are far more variable parts in the output than I thought. I think the exact ttl value and ordering of responses cannot be relied on either. Is it OK having a test like this with all of that numeric information filetered out?

Aug 19 2019, 2:10 PM
asomers committed rS351203: periodic: replace "tty" with "test -t 0".
periodic: replace "tty" with "test -t 0"
Aug 19 2019, 1:14 AM
asomers closed D21318: periodic: replace "tty" with "test -t 0".
Aug 19 2019, 1:14 AM
asomers added a comment to D21292: ping6: add a basic test of ping6's functionality.
In D21292#463402, @sucanjan_gmail.com wrote:

Could I use getaddrinfo command for that? Like this:

if getaddrinfo -f inet6 localhost 1>/dev/null 2>&1; then
    atf_add_test_case ping6_c3
Aug 19 2019, 12:01 AM

Aug 18 2019

asomers added a comment to D21319: ping6: Fix insufficient privileges bug introduced by r350857.

Is this a full revocation of r350857?

Aug 18 2019, 11:54 PM
asomers added a comment to D21318: periodic: replace "tty" with "test -t 0".

Remove debugging detritus

Aug 18 2019, 11:49 PM
asomers added inline comments to D21318: periodic: replace "tty" with "test -t 0".
Aug 18 2019, 11:49 PM
asomers added a comment to D21318: periodic: replace "tty" with "test -t 0".

Use [ instead of test

Aug 18 2019, 8:44 PM
asomers created D21318: periodic: replace "tty" with "test -t 0".
Aug 18 2019, 5:24 PM
asomers committed rS351192: periodic: fix anticongestion for scripts run after security.
periodic: fix anticongestion for scripts run after security
Aug 18 2019, 5:12 PM

Aug 17 2019

asomers committed rS351172: ping6: Raise WARNS level to 6.
ping6: Raise WARNS level to 6
Aug 17 2019, 5:22 PM
asomers closed D21260: ping6: Raise WARNS level to 6.
Aug 17 2019, 5:22 PM
D21260: ping6: Raise WARNS level to 6 is now accepted and ready to land.
Aug 17 2019, 5:20 PM
asomers committed rS351171: ping: Move in_cksum() to a separate source file.
ping: Move in_cksum() to a separate source file
Aug 17 2019, 3:25 PM
asomers closed D21288: ping: move in_cksum() to a separate source file.
Aug 17 2019, 3:25 PM
D21288: ping: move in_cksum() to a separate source file is now accepted and ready to land.
Aug 17 2019, 3:23 PM
D21260: ping6: Raise WARNS level to 6 now requires changes to proceed.
Aug 17 2019, 2:52 PM
D21288: ping: move in_cksum() to a separate source file now requires changes to proceed.

As Ryan said, utils.c needs a copyright header. it also needs a $FreeBSD$ keyword.

Aug 17 2019, 2:41 PM
D21289: ping: add a basic test of ping's functionality now requires changes to proceed.

This test will fail if IPv4 is not configured. It needs some kind of test for that. Also, 127.0.0.1 is merely the conventional address for localhost. It's possible to configure localhost's address to 127.0.0.2, for example.

Aug 17 2019, 2:35 PM
D21292: ping6: add a basic test of ping6's functionality now requires changes to proceed.

This test will fail if IPv6 is not configured at runtime. It needs some kind of check for that.

Aug 17 2019, 2:30 PM
asomers committed rS351170: ping6: Fix dnsdecode() bug introduced by r350859.
ping6: Fix dnsdecode() bug introduced by r350859
Aug 17 2019, 2:28 PM
asomers closed D21266: ping6: Fix dnsdecode() bug introduced by r350859.
Aug 17 2019, 2:28 PM
D21266: ping6: Fix dnsdecode() bug introduced by r350859 is now accepted and ready to land.
Aug 17 2019, 2:21 PM

Aug 16 2019

asomers added a comment to D21287: fusefs: fix list size calculation bug in fuse_vnop_listextattr.

Handle a race condition in fuse_vnop_listextattr

Aug 16 2019, 9:26 PM
asomers closed D21280: fusefs: don't send the namespace during listextattr.
Aug 16 2019, 5:07 AM
asomers committed rS351113: fusefs: don't send the namespace during listextattr.
fusefs: don't send the namespace during listextattr
Aug 16 2019, 5:07 AM
asomers added a comment to D21287: fusefs: fix list size calculation bug in fuse_vnop_listextattr.

Ohh, I just realized the purpose of line 2321. I'll fix the review in the morning.

Aug 16 2019, 4:56 AM
asomers created D21287: fusefs: fix list size calculation bug in fuse_vnop_listextattr.
Aug 16 2019, 4:50 AM
asomers added inline comments to D21280: fusefs: don't send the namespace during listextattr.
Aug 16 2019, 4:25 AM

Aug 15 2019

asomers created D21280: fusefs: don't send the namespace during listextattr.
Aug 15 2019, 9:25 PM
asomers committed rS351102: ping6: Fix alignment errors.
ping6: Fix alignment errors
Aug 15 2019, 7:52 PM
asomers closed D21217: ping6: Fix alignment errors.
Aug 15 2019, 7:52 PM
D21217: ping6: Fix alignment errors is now accepted and ready to land.
Aug 15 2019, 7:38 PM
asomers closed D21273: ping6: Compile calls of Casper limit functions conditionally.
Aug 15 2019, 7:27 PM
asomers committed rS351101: ping6: fix uninitialized variable warnings when MK_CASPER=no.
ping6: fix uninitialized variable warnings when MK_CASPER=no
Aug 15 2019, 7:27 PM
D21273: ping6: Compile calls of Casper limit functions conditionally is now accepted and ready to land.
Aug 15 2019, 7:26 PM
asomers committed rS351090: ping6: Fix data type of the buffer for ancillary data of a received message.
ping6: Fix data type of the buffer for ancillary data of a received message
Aug 15 2019, 5:24 PM
asomers closed D21275: ping6: Fix data type of the buffer for ancillary data of a received message.
Aug 15 2019, 5:24 PM
D21275: ping6: Fix data type of the buffer for ancillary data of a received message is now accepted and ready to land.
Aug 15 2019, 5:21 PM
asomers closed D21271: ping6: Rearrange code for initialization of 'intvl' variable.
Aug 15 2019, 4:09 PM
asomers committed rS351082: ping6: fix uninitialized variable warning for intvl.
ping6: fix uninitialized variable warning for intvl
Aug 15 2019, 4:09 PM
D21271: ping6: Rearrange code for initialization of 'intvl' variable is now accepted and ready to land.
Aug 15 2019, 4:07 PM
asomers committed rS351080: ping6: quiet an undefined variable warning.
ping6: quiet an undefined variable warning
Aug 15 2019, 3:55 PM
asomers closed D21269: ping6: Initialize ttl variable.
Aug 15 2019, 3:55 PM