- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Aug 23 2019
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 22 2019
Uhh, the requirement would be that I need to read the entire review, not just the most recent commit.
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.
Please add a copyright header with a $FreeBSD$ tag to the top of ping_test.sh
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 21 2019
I'm going to reword the man page entry a bit. Other than that, this change looks good.
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).
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.
This looks mostly good, but I have two concerns:
- Should you filter out hop limit the same way you filtered out ttl from the ping tests?
- 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.
This needs a rebase now.
Aug 20 2019
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 "?";
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.
Don't forget to add an entry to etc/mtree/BSD.tests.dist
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 19 2019
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.
This change breaks the build on powerpc, powerpc64, and sparc64:
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?
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 18 2019
Is this a full revocation of r350857?
Remove debugging detritus
Use [ instead of test
Aug 17 2019
As Ryan said, utils.c needs a copyright header. it also needs a $FreeBSD$ keyword.
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.
This test will fail if IPv6 is not configured at runtime. It needs some kind of check for that.
Aug 16 2019
Handle a race condition in fuse_vnop_listextattr
Ohh, I just realized the purpose of line 2321. I'll fix the review in the morning.