Page MenuHomeFreeBSD
Feed Advanced Search

Aug 19 2019

jansucan created D21325: ping: increase buffer size for the string representation of n_time.
Aug 19 2019, 4:59 PM
jansucan created D21322: ping: fix uninitialized variable warnings when MK_CASPER=no.
Aug 19 2019, 4:15 PM
jansucan added a comment to D21289: ping: add a basic test of ping's functionality.

Well, I'm not sure. It's not completely useless. It helped me to discover few bugs during development. Maybe we could keep it just for now when there is no better testing employed. Filtering those information out itself could be considered a check because if a string doesn't match the regular expression, it's not filtered out and it's detected. Please, decide. If you close this review (and the one for ping6), I will understand and I will continue without the ATF sh tests.

Aug 19 2019, 3:54 PM
jansucan added a comment to D21289: ping: add a basic test of ping's functionality.

Use a single tab width in the ATF test script.

Aug 19 2019, 8:05 AM
jansucan added a comment to D21292: ping6: add a basic test of ping6's functionality.

Use a single tab width in the ATF test script.

Aug 19 2019, 7:45 AM
jansucan added a comment to D21319: ping6: Fix insufficient privileges bug introduced by r350857.

Yes.

Aug 19 2019, 5:26 AM

Aug 18 2019

jansucan created D21319: ping6: Fix insufficient privileges bug introduced by r350857.
Aug 18 2019, 7:21 PM
jansucan added a comment to D21289: ping: add a basic test of ping's functionality.

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 18 2019, 10:00 AM

Aug 17 2019

jansucan added a comment to D21292: ping6: add a basic test of ping6's functionality.

Could I use getaddrinfo command for that? Like this:

Aug 17 2019, 3:34 PM
jansucan added a comment to D21288: ping: move in_cksum() to a separate source file.

Use copyright information and ID from ping.c in utils.c.

Aug 17 2019, 3:16 PM
jansucan retitled D21288: ping: move in_cksum() to a separate source file from ping6: move in_cksum() to a separate source file to ping: move in_cksum() to a separate source file.
Aug 17 2019, 3:14 PM
jansucan added inline comments to D21260: ping6: Raise WARNS level to 6.
Aug 17 2019, 3:13 PM
jansucan added a comment to D21260: ping6: Raise WARNS level to 6.

Remove WARNS. 6 is the default level.

Aug 17 2019, 3:08 PM

Aug 16 2019

jansucan created D21292: ping6: add a basic test of ping6's functionality.
Aug 16 2019, 4:20 PM
jansucan added a comment to D21289: ping: add a basic test of ping's functionality.

Should I put any copyright information to tests/ping_test.sh?

Aug 16 2019, 7:57 AM
jansucan created D21289: ping: add a basic test of ping's functionality.
Aug 16 2019, 7:56 AM
jansucan added a comment to D21288: ping: move in_cksum() to a separate source file.

I didn't put any copyright notice in utils.c because I didn't know what part of the copyright information to take from ping.c. Could you please help me with this?

Aug 16 2019, 7:49 AM
jansucan created D21288: ping: move in_cksum() to a separate source file.
Aug 16 2019, 7:20 AM
jansucan added inline comments to D21266: ping6: Fix dnsdecode() bug introduced by r350859.
Aug 16 2019, 6:49 AM
jansucan added a comment to D21266: ping6: Fix dnsdecode() bug introduced by r350859.

Document dnsdecode's arguments and return value.

Aug 16 2019, 6:45 AM

Aug 15 2019

jansucan added a comment to D21217: ping6: Fix alignment errors.

All of the warnings should be fixed (D21269, D21270, D21271, D21273, D21275).

Aug 15 2019, 3:03 PM
jansucan created D21275: ping6: Fix data type of the buffer for ancillary data of a received message.
Aug 15 2019, 2:59 PM
jansucan created D21273: ping6: Compile calls of Casper limit functions conditionally.
Aug 15 2019, 2:44 PM
jansucan created D21271: ping6: Rearrange code for initialization of 'intvl' variable.
Aug 15 2019, 1:20 PM
jansucan created D21270: ping6: Disable definition of the old copyright variable.
Aug 15 2019, 1:02 PM
jansucan created D21269: ping6: Initialize ttl variable.
Aug 15 2019, 12:48 PM
jansucan created D21266: ping6: Fix dnsdecode() bug introduced by r350859.
Aug 15 2019, 7:20 AM

Aug 14 2019

jansucan created D21261: ping: Make in_cksum() operate on u_char buffer.
Aug 14 2019, 7:41 AM
jansucan added a comment to D21260: ping6: Raise WARNS level to 6.

This depends on D21217.

Aug 14 2019, 7:11 AM
jansucan created D21260: ping6: Raise WARNS level to 6.
Aug 14 2019, 7:09 AM
jansucan added a comment to D21217: ping6: Fix alignment errors.

Rebase to the master branch.

Aug 14 2019, 7:01 AM
D21258: ping: fix triptime calculation after r350998 is now accepted and ready to land.

Thanks for the fix.

Aug 14 2019, 5:02 AM

Aug 13 2019

jansucan added inline comments to D21245: ping: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).
Aug 13 2019, 5:28 PM
jansucan added a comment to D21245: ping: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).

Use timespecadd(), and timespecsub().

Aug 13 2019, 5:28 PM
jansucan added inline comments to D21226: ping6: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).
Aug 13 2019, 5:25 PM
jansucan added a comment to D21226: ping6: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).

Use timespecadd(), timespecsub(), and timespecclear().

Aug 13 2019, 5:24 PM
jansucan created D21245: ping: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).
Aug 13 2019, 8:49 AM
jansucan created D21244: ping: Fix data type of a variable for a packet sequence number.
Aug 13 2019, 8:27 AM
jansucan retitled D21219: ping6: Consistently use the byteorder functions in the correct direction from ping6: Fix endianness of a sequence number in a packet to send to ping6: Consistently use the byteorder functions in the correct direction.
Aug 13 2019, 7:23 AM
jansucan added a comment to D21220: ping6: Annotate truncating of time values saved in a packet.

The revision has been combined.

Aug 13 2019, 7:16 AM
jansucan added a comment to D21226: ping6: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).

Annotate truncating of time values saved in a packet.

Aug 13 2019, 7:13 AM
jansucan added inline comments to D21226: ping6: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).
Aug 13 2019, 7:06 AM
jansucan added a comment to D21226: ping6: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).

Use timespecsub(3) instead of a private function.

Aug 13 2019, 7:05 AM
jansucan added inline comments to D21220: ping6: Annotate truncating of time values saved in a packet.
Aug 13 2019, 4:13 AM
jansucan added a comment to D21219: ping6: Consistently use the byteorder functions in the correct direction.

What should be the correct description?

Aug 13 2019, 4:12 AM

Aug 12 2019

jansucan added inline comments to D21217: ping6: Fix alignment errors.
Aug 12 2019, 11:56 AM
jansucan created D21226: ping6: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC).
Aug 12 2019, 11:53 AM
jansucan added inline comments to D21217: ping6: Fix alignment errors.
Aug 12 2019, 11:03 AM
jansucan created D21220: ping6: Annotate truncating of time values saved in a packet.
Aug 12 2019, 7:30 AM
jansucan created D21219: ping6: Consistently use the byteorder functions in the correct direction.
Aug 12 2019, 7:03 AM
jansucan created D21218: ping6: Fix data type of a variable for a packet sequence number.
Aug 12 2019, 6:52 AM
jansucan added inline comments to D21217: ping6: Fix alignment errors.
Aug 12 2019, 5:34 AM

Aug 11 2019

jansucan added inline comments to D21217: ping6: Fix alignment errors.
Aug 11 2019, 6:53 PM
jansucan added inline comments to D21217: ping6: Fix alignment errors.
Aug 11 2019, 6:36 PM
jansucan created D21217: ping6: Fix alignment errors.
Aug 11 2019, 2:52 PM
jansucan created D21215: ping6: Remove unnecessary level of indirection from dnsdecode() parameter.
Aug 11 2019, 7:37 AM
jansucan created D21214: ping6: Add missing static keyword for a global variable.
Aug 11 2019, 7:12 AM
jansucan created D21213: ping6: Revoke root privilege earlier.
Aug 11 2019, 6:40 AM

Jul 30 2019

jansucan added a comment to D21050: Capsicumize ping6.

Try to Use arc diff so that all the changes are included in the diff.

Jul 30 2019, 11:41 AM
jansucan added a comment to D21050: Capsicumize ping6.

Limit stdio rights.

Jul 30 2019, 11:32 AM
jansucan added inline comments to D21050: Capsicumize ping6.
Jul 30 2019, 6:56 AM

Jul 29 2019

jansucan added inline comments to D21050: Capsicumize ping6.
Jul 29 2019, 2:57 PM
D21050: Capsicumize ping6 now requires review to proceed.

Use nitems() for getting size of an array.

Jul 29 2019, 2:57 PM

Jul 27 2019

jansucan added inline comments to D21050: Capsicumize ping6.
Jul 27 2019, 7:33 PM
jansucan added a comment to D21050: Capsicumize ping6.

Define two separate cap_rights_t sets, one for each socket, and use cap_rights_clear() to remove CAP_SETSOCKOPT before further limiting rights on those sockets.

Jul 27 2019, 7:26 PM
jansucan added a comment to D21050: Capsicumize ping6.

There are some seemingly unrelated changes: we drop privileges earlier, we set SO_DEBUG on both sockets, some whitespace changes. I would suggest having those be separate commits.

Jul 27 2019, 6:37 AM