Page MenuHomeFreeBSD
Feed Advanced Search

Jul 13 2023

jlduran_gmail.com updated the test plan for D41033: xargs/tests: Include expected output file for -nMAX_INT.
Jul 13 2023, 11:02 PM
jlduran_gmail.com requested review of D41033: xargs/tests: Include expected output file for -nMAX_INT.
Jul 13 2023, 11:01 PM
jlduran_gmail.com added a comment to D41023: xargs: Prevent overflow in linelen calculation if nargs is large..

For some reason this patch is not working for me, It works fine on macOS. I'll take a closer look later.

Jul 13 2023, 9:05 PM
jlduran_gmail.com added a comment to D41023: xargs: Prevent overflow in linelen calculation if nargs is large..

Nice catch! Thank you!
Just a few minor suggestions in the tests.

Jul 13 2023, 8:12 PM

Jul 11 2023

jlduran_gmail.com added a comment to D40966: lib/libc/string/ffs*.c: fix problems introduced with D40730.

Unfortunately I didn't get world to build
with gcc due to unrelated errors.

Jul 11 2023, 2:14 AM

Jul 8 2023

jlduran_gmail.com added a comment to D40730: lib/libc/string: replace ffs/fls implementations with clang builtins.
In D40730#931752, @fuz wrote:

This broke builds using GCC 12 (https://cirrus-ci.com/task/6627586759983104). Is this being currently addressed?

I have a workaround for this breakage which I plan to investigate next week. The idea is to switch back to __builtin_ctz when building with gcc, which does not trigger the warning.

Jul 8 2023, 4:40 PM

Jul 7 2023

jlduran_gmail.com added a comment to D40730: lib/libc/string: replace ffs/fls implementations with clang builtins.

This broke builds using GCC 12 (https://cirrus-ci.com/task/6627586759983104). Is this being currently addressed?

Jul 7 2023, 7:01 PM
jlduran_gmail.com added a comment to D40425: xargs: Consistently use strtonum() to parse arguments..

Just in case, please see GitHub Pull request #790.

Jul 7 2023, 3:24 PM

Jul 3 2023

jlduran_gmail.com added a comment to D38766: release: Remove lang/python2 from GCE's pkg list.
In D38766#929900, @gjb wrote:

I'm sorry, I did not see this review. :(

To be fair, I was away for medical reasons around the time of submission, but I am still sorry this went unaddressed for so long.

Jul 3 2023, 11:58 PM
jlduran_gmail.com abandoned D38766: release: Remove lang/python2 from GCE's pkg list.

Closed by 3f21d3e0babacabb9a32e0e9a8ab290025d5577c.

Jul 3 2023, 9:38 PM

Jun 16 2023

jlduran_gmail.com updated subscribers of D38783: route.8: Add information about ROUTE_MPATH and FIB_ALGO.
In D38783#883124, @gbe wrote:

First of all, thank you for taking care of documenting this type of changes!
I believe we almost forgot about DXR, something along the lines that it can be loaded with fib_dxr.ko.
Unfortunately, the best documentation I could find in base is in the code itself (and in the diff before it landed).

OK, that's interesting. I just look on a very recent stable/13 and there is the module not present. On a -CURRENT from yesterday it is. When loading the module a DXR algorithm is available for IPv4 in terms of

net.route.algo.inet.algo_list: dpdk_lpm4, bsearch4, radix4_lockless, radix4, dxr}

@melifaro can you give us a little bit more insight here?

Jun 16 2023, 2:41 AM

May 20 2023

jlduran_gmail.com added a reviewer for D38490: ping: Accept ToS keywords with -z: kp.
May 20 2023, 8:41 PM
jlduran_gmail.com added a comment to D38490: ping: Accept ToS keywords with -z.
In D38490#914771, @bcr wrote:

Any updates here? I'd be happy to approve the man page change.

May 20 2023, 8:41 PM

May 5 2023

jlduran_gmail.com added inline comments to D39954: ntpd: Support IPv6-only hosts.
May 5 2023, 12:21 PM

Apr 25 2023

jlduran_gmail.com added a comment to D39760: pkt-gen: Sync with upstream.

I can commit this if needed

Apr 25 2023, 4:11 PM

Apr 22 2023

jlduran_gmail.com added a comment to D39760: pkt-gen: Sync with upstream.

It is worth noting that the man pages in this directory are not installed by make install.

Apr 22 2023, 7:38 PM
jlduran_gmail.com added a reviewer for D39760: pkt-gen: Sync with upstream: network.
Apr 22 2023, 5:17 PM
jlduran_gmail.com requested review of D39760: pkt-gen: Sync with upstream.
Apr 22 2023, 5:16 PM

Apr 13 2023

jlduran_gmail.com added a comment to D39561: ping: pr_iph() improvements.

GitHub branch/internal pull request: https://github.com/jlduran/freebsd-src/pull/26

Apr 13 2023, 6:04 PM
jlduran_gmail.com requested review of D39561: ping: pr_iph() improvements.
Apr 13 2023, 5:54 PM

Apr 10 2023

jlduran_gmail.com updated the summary of D39492: ping: Fix the spacing between the time stamp and cp/dp.
Apr 10 2023, 6:43 PM
jlduran_gmail.com added a comment to D39492: ping: Fix the spacing between the time stamp and cp/dp.

GitHub branch/internal pull request: https://github.com/jlduran/freebsd-src/pull/25

Apr 10 2023, 6:38 PM
jlduran_gmail.com requested review of D39492: ping: Fix the spacing between the time stamp and cp/dp.
Apr 10 2023, 6:33 PM
jlduran_gmail.com requested review of D39485: ping: Remove an extra new line character.
Apr 10 2023, 4:45 PM

Apr 6 2023

jlduran_gmail.com added a comment to D39445: tests: convert forwarding tests to python.
In D39445#898034, @kp wrote:
In D39445#897963, @kp wrote:

This is neat. It took me some time to understand what's going on, but certainly this framework is better than atf-sh for writing complex or heavily parameterized tests.

I'm currently trying to write a carp test based on this example, and ... well, I can sort of see it making sense when I need scapy to parse packets (which is what I want to do in the test I'm writing), but there's a lot of magic here, and it's taken me quite a bit of time already just to get the setup going (a vnet jail with one epair interface with carp configured on it), and it still doesn't do things that are trivial in atf-sh (How do I skip the test if carp.ko is not loaded?).

Having more or less finished that test (D39454) I think my view remains that python is great for tests that do things like use scapy to parse packets, but I don't think they'd be suitable for tests such as pfsync:bulk (and indeed the majority of pf tests) where 99% of the test is setup.
There's a fair criticism of the atf-sh tests that there's a lot of boilerplate, but I find it makes the test more obvious about what's going on. That is, I can read the test as if it were a very simple shell script. Nothing is hidden, and it's clear what setup is being created.

I believe that in some cases, complex templates can be created, for example:

  outside
     |
 +---+---+
fw2 --- fw2
 +---+---+
     |
   inside

can be a class named SimplePFSync that you can inherit in your tests. You would need to understand what SimplePFSync does and returns first (as a newcomer), also it will likely reside in some common file somewhere else (as I understand you prefer to see the setup explicitly in the test), but it should allow you to focus on what's being tested. It is a matter of personal preference, of course.

Apr 6 2023, 4:55 PM
jlduran_gmail.com added a comment to D39445: tests: convert forwarding tests to python.

If this is is just a PoC for the discussion in D39420, please ignore. Otherwise, I believe this will need an ObsoleteFiles.inc entry?
The only drawback I can find to python tests is that they run a bit slower (for now [1]), allegedly compensated by reduced development time :-))

Apr 6 2023, 1:55 PM

Apr 4 2023

jlduran_gmail.com added inline comments to D39413: rc.d/zfsbe: Simplify.
Apr 4 2023, 10:07 PM
jlduran_gmail.com added inline comments to D39413: rc.d/zfsbe: Simplify.
Apr 4 2023, 6:29 PM

Apr 3 2023

jlduran_gmail.com updated the diff for D39126: ping: Unify ping/ping6 statistics section.
  • Fix indentation
Apr 3 2023, 7:22 PM
jlduran_gmail.com added a comment to D39126: ping: Unify ping/ping6 statistics section.

This is looking ok to me with the nits resolved.

Apr 3 2023, 6:54 PM
jlduran_gmail.com added a comment to D39396: ifconfig: Use the interface name we get back when configuring if_bridge with additional operating parameters.

Tangential question: Should we add some atf-sh tests with the test plan, even if simplistic, for this and some of your previous ifconfig(8) improvements? If you think it's worth the trouble, I'll try to submit them.

Apr 3 2023, 5:02 PM

Mar 28 2023

jlduran_gmail.com added a comment to D39278: libc: Use secure_getenv(3) where appropriate.

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Mar 28 2023, 2:08 AM

Mar 25 2023

jlduran_gmail.com added a comment to D39245: libcasper: Move helper libraries from /lib/casper to /lib..

Taken from a truss output:

open("/lib/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/lib/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/lib/compat/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/local/lib/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/local/lib/compat/pkg/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/local/lib/perl5/5.30/mach/CORE/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/local/lib/perl5/5.32/mach/CORE/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/local/llvm11/lib/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/usr/local/llvm15/lib/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) ERR#2 'No such file or directory'
open("/lib/casper/libcap_dns.so.2",O_RDONLY|O_CLOEXEC|O_VERIFY,066000) = 3 (0x3)

After this change, it'll match on the first attempt.

Mar 25 2023, 12:10 AM

Mar 24 2023

jlduran_gmail.com added inline comments to D39244: ping tests: Add a regression test.
Mar 24 2023, 5:40 AM
jlduran_gmail.com updated the summary of D39244: ping tests: Add a regression test.
Mar 24 2023, 5:06 AM
jlduran_gmail.com updated the test plan for D39244: ping tests: Add a regression test.
Mar 24 2023, 3:40 AM
jlduran_gmail.com updated the test plan for D39233: ping: Fix an uninitialized variable.
Mar 24 2023, 3:40 AM
jlduran_gmail.com removed a reviewer for D39233: ping: Fix an uninitialized variable: tests.
Mar 24 2023, 3:39 AM
jlduran_gmail.com requested review of D39244: ping tests: Add a regression test.
Mar 24 2023, 3:38 AM
jlduran_gmail.com updated the diff for D39233: ping: Fix an uninitialized variable.
  • Move the tests to a separate commit
  • Drop style(9) changes
Mar 24 2023, 3:35 AM

Mar 23 2023

jlduran_gmail.com added a comment to D39233: ping: Fix an uninitialized variable.
In D39233#893290, @cy wrote:
In D39233#893278, @cy wrote:

Jumbo commits are discouraged. Can you break this revision into three, please.

One to fix the error.

Another to fix the regression.

A third to fix style(9) + whitespace changes.

Will do. In that case, I have a commit just to fix style for the entire file (will be submitted after 13.2-RELEASE, as requested).

Typically what I do is create a git branch and do all my commits there. Sometimes I will submit the reviews separately or if it loses context I submit one review, stating that the one review will be commmitted using N commits.

Yes, it’s on https://github.com/jlduran/freebsd-src/commits/ping-fix-20b4130. However, I’d like to clean it up a little. Tomorrow will do. Thank you!

Mar 23 2023, 11:14 PM
jlduran_gmail.com planned changes to D39233: ping: Fix an uninitialized variable.
In D39233#893278, @cy wrote:

Jumbo commits are discouraged. Can you break this revision into three, please.

One to fix the error.

Another to fix the regression.

A third to fix style(9) + whitespace changes.

Mar 23 2023, 10:19 PM
jlduran_gmail.com requested review of D39233: ping: Fix an uninitialized variable.
Mar 23 2023, 8:23 PM
jlduran_gmail.com abandoned D38431: ping: Reference implementation.

This can now be abandoned. Thank you!

Mar 23 2023, 1:54 PM

Mar 22 2023

jlduran_gmail.com added inline comments to D39126: ping: Unify ping/ping6 statistics section.
Mar 22 2023, 1:37 PM
jlduran_gmail.com updated the diff for D39126: ping: Unify ping/ping6 statistics section.

Address issues:

  • Move the interrupt handler function onsignal() to main.c. When a SIGINT is received, check to avoid PR 4696, although I was not able to reproduce it. I am currently working on adding tests for interrupts and this will become a test. I suspect cap_gethostbyname2 is not bound to the same threading issues as gethostbyname2 (back when the bug was filed)
  • Unify F_NUMERIC and F_HOSTNAME constants, given numeric output is the default, use F_HOSTNAME (-n and -H should be mutually exclusive?)
  • Reduce diffs between ping.c and ping6.c whenever possible
Mar 22 2023, 1:34 PM

Mar 21 2023

jlduran_gmail.com added inline comments to D39126: ping: Unify ping/ping6 statistics section.
Mar 21 2023, 2:02 PM

Mar 20 2023

jlduran_gmail.com planned changes to D39126: ping: Unify ping/ping6 statistics section.
Mar 20 2023, 1:23 PM
jlduran_gmail.com added inline comments to D39126: ping: Unify ping/ping6 statistics section.
Mar 20 2023, 4:04 AM
jlduran_gmail.com added inline comments to D39126: ping: Unify ping/ping6 statistics section.
Mar 20 2023, 3:42 AM

Mar 17 2023

jlduran_gmail.com updated the diff for D39126: ping: Unify ping/ping6 statistics section.
  • Reset seenint and seeninfo counters for SIGINT and SIGINFO respectively, just like ping6.c
Mar 17 2023, 10:44 PM
jlduran_gmail.com updated the diff for D39126: ping: Unify ping/ping6 statistics section.
  • Do not use D38483 as a parent revision
Mar 17 2023, 9:55 PM
jlduran_gmail.com abandoned D38483: ping: Tell SIGQUIT to interrupt the system call.

This revision now gets in the middle of a more important one. Let's abandon it... if there is interest, revisit.

Mar 17 2023, 9:48 PM
jlduran_gmail.com added inline comments to D39126: ping: Unify ping/ping6 statistics section.
Mar 17 2023, 5:49 PM
jlduran_gmail.com updated the diff for D39126: ping: Unify ping/ping6 statistics section.

Address suggestions:

  • Remove SIGINFO guards
  • Remove onint()
Mar 17 2023, 5:49 PM
jlduran_gmail.com added a comment to D38485: ping: Add units to SIGINFO's statistics.

Address suggestions:
In this first iteration, simply duplicate the code from the final statistics section into SIGINFO's.

I think this can be committed as-is. Is there a review up to unify them?

I was planning on leaving that unification for last, but let me try to at least unify and test this user-facing part.
Maybe I should put all shared code in sbin/ping/utils.c... I'll work on that. Thank you!

Will you update this review with the result? I'll hold off on committing in that case.

Actually, I'll be submitting a separate review, it's a long diff.
I placed the unified code into main.c, as more elements are unified, they'll also be placed in main.c?
I'll wait over the weekend to let these changes soak in, before formally creating the review. But, if you want to take a preliminary look:
https://github.com/jlduran/freebsd-src/tree/ping-interrupts-ping6-unification

The code has been rebased on GitHub, and the proposal of this diff unified has been submitted as D39126.
Thank you!

Do I understand correctly that this review is now obsolete in favour of D39126?

Mar 17 2023, 4:58 PM

Mar 16 2023

jlduran_gmail.com updated the diff for D38469: ping: Print the IP options of the original packet.
  • Address comments
  • Set D39125 as the parent revision
Mar 16 2023, 6:11 PM
jlduran_gmail.com updated the diff for D39126: ping: Unify ping/ping6 statistics section.

Sigh, use the right base for the diff.

Mar 16 2023, 5:19 PM
jlduran_gmail.com added a comment to D38485: ping: Add units to SIGINFO's statistics.

Address suggestions:
In this first iteration, simply duplicate the code from the final statistics section into SIGINFO's.

I think this can be committed as-is. Is there a review up to unify them?

I was planning on leaving that unification for last, but let me try to at least unify and test this user-facing part.
Maybe I should put all shared code in sbin/ping/utils.c... I'll work on that. Thank you!

Will you update this review with the result? I'll hold off on committing in that case.

Actually, I'll be submitting a separate review, it's a long diff.
I placed the unified code into main.c, as more elements are unified, they'll also be placed in main.c?
I'll wait over the weekend to let these changes soak in, before formally creating the review. But, if you want to take a preliminary look:
https://github.com/jlduran/freebsd-src/tree/ping-interrupts-ping6-unification

Mar 16 2023, 5:10 PM
jlduran_gmail.com requested review of D39126: ping: Unify ping/ping6 statistics section.
Mar 16 2023, 5:05 PM
jlduran_gmail.com requested review of D39125: ping: Avoid magic numbers.
Mar 16 2023, 4:35 PM

Mar 15 2023

jlduran_gmail.com added a member for network: jlduran_gmail.com.
Mar 15 2023, 4:43 PM
jlduran_gmail.com added a comment to D39081: checkstyle9.pl: Perl script to check if a change is approximately style(9).

I was planning on proposing —specifically for GitHub pull requests— to use their own Super-Linter, maybe submitting a mandoc linter as well.
It uses clang-format, however checkstyle9.pl is less aggressive than clang-format (and from a brief test, more accurate!). It also has the advantage that it can be used in almost any development setup. Nice!

Mar 15 2023, 12:49 AM

Mar 13 2023

jlduran_gmail.com added inline comments to D39063: pf tests: test IPv6 fragmentation with link-local addresses.
Mar 13 2023, 10:52 PM
jlduran_gmail.com added a comment to D38469: ping: Print the IP options of the original packet.

Try a different approach.
Given this is the base revision for a number of others, some merge conflicts may arise. At any rate,w2 I have a branch with all the other accepted revisions already rebased just in case.
The code inside pr_retip() is only done here for completeness, as it will be completely removed later on.

Could you please point me to the branch? I can commit them now.

Mar 13 2023, 5:16 PM
jlduran_gmail.com added inline comments to D38469: ping: Print the IP options of the original packet.
Mar 13 2023, 1:05 AM

Mar 11 2023

jlduran_gmail.com added a comment to D38469: ping: Print the IP options of the original packet.

Try a different approach.
Given this is the base revision for a number of others, some merge conflicts may arise. At any rate,w2 I have a branch with all the other accepted revisions already rebased just in case.
The code inside pr_retip() is only done here for completeness, as it will be completely removed later on.

Mar 11 2023, 7:34 AM
jlduran_gmail.com updated the diff for D38469: ping: Print the IP options of the original packet.
Mar 11 2023, 7:29 AM
jlduran_gmail.com added a comment to D38485: ping: Add units to SIGINFO's statistics.

Address suggestions:
In this first iteration, simply duplicate the code from the final statistics section into SIGINFO's.

I think this can be committed as-is. Is there a review up to unify them?

I was planning on leaving that unification for last, but let me try to at least unify and test this user-facing part.
Maybe I should put all shared code in sbin/ping/utils.c... I'll work on that. Thank you!

Will you update this review with the result? I'll hold off on committing in that case.

Actually, I'll be submitting a separate review, it's a long diff.
I placed the unified code into main.c, as more elements are unified, they'll also be placed in main.c?
I'll wait over the weekend to let these changes soak in, before formally creating the review. But, if you want to take a preliminary look:
https://github.com/jlduran/freebsd-src/tree/ping-interrupts-ping6-unification

Mar 11 2023, 1:40 AM

Mar 10 2023

jlduran_gmail.com added a comment to D38485: ping: Add units to SIGINFO's statistics.

Address suggestions:
In this first iteration, simply duplicate the code from the final statistics section into SIGINFO's.

I think this can be committed as-is. Is there a review up to unify them?

I was planning on leaving that unification for last, but let me try to at least unify and test this user-facing part.
Maybe I should put all shared code in sbin/ping/utils.c... I'll work on that. Thank you!

Will you update this review with the result? I'll hold off on committing in that case.

Mar 10 2023, 6:47 PM
jlduran_gmail.com added a comment to D38485: ping: Add units to SIGINFO's statistics.

Address suggestions:
In this first iteration, simply duplicate the code from the final statistics section into SIGINFO's.

I think this can be committed as-is. Is there a review up to unify them?

Mar 10 2023, 6:29 PM

Mar 5 2023

jlduran_gmail.com added a comment to D38918: pfctl: Fix superblock printf format mismatch.

Just as a reference, here is OpenBSD's commit:
https://github.com/openbsd/src/commit/0c54afce7b19bf1867acebc6219af5943ce387c3

Mar 5 2023, 11:06 PM
jlduran_gmail.com added inline comments to D38894: security/vuxml: Autofill CVE information.
Mar 5 2023, 6:22 PM

Mar 3 2023

jlduran_gmail.com added a comment to D38894: security/vuxml: Autofill CVE information.

Amazing!

Mar 3 2023, 9:30 PM

Mar 1 2023

jlduran_gmail.com added a comment to D38826: Fix multiple rc.d/jail and jail.conf.d issues.

I like the overall idea, thank you for adding more conf.ds to FreeBSD!

Mar 1 2023, 1:24 AM · Jails

Feb 27 2023

jlduran_gmail.com added a comment to D38783: route.8: Add information about ROUTE_MPATH and FIB_ALGO.

I have also confirmed it is present on 13.2-BETA3.
It is essentially another IPv4 lookup scheme developed by zec@ and luigi@ more info in the 2012 published paper, and the Phabricator review D-29821, designed as an alternative to using ASICs, targeting high-end routers.
I have not been able to test it, maybe olivier@ ?, but I think the idea here is to just mention its existence.
(Intentionally not tagging users/reviewers)

Feb 27 2023, 4:31 PM

Feb 26 2023

jlduran_gmail.com added a comment to D38783: route.8: Add information about ROUTE_MPATH and FIB_ALGO.

First of all, thank you for taking care of documenting this type of changes!
I believe we almost forgot about DXR, something along the lines that it can be loaded with fib_dxr.ko.
Unfortunately, the best documentation I could find in base is in the code itself (and in the diff before it landed).

Feb 26 2023, 8:58 PM

Feb 25 2023

jlduran_gmail.com added a comment to D38771: CONTRIBUTING.md: Add in for github pull requests.
In D38771#882639, @imp wrote:

Should this file be created under .github, given it is specifically for GitHub contributions, so it does not "pollute" the top-level directory?

For now, I think I'm going to keep it at the top level to give it the maximum visibility. I'll keep that in mind, though.

Feb 25 2023, 10:11 PM
jlduran_gmail.com added inline comments to D38771: CONTRIBUTING.md: Add in for github pull requests.
Feb 25 2023, 10:07 PM
jlduran_gmail.com added a comment to D38771: CONTRIBUTING.md: Add in for github pull requests.

Should this file be created under .github, given it is specifically for GitHub contributions, so it does not "pollute" the top-level directory?

Feb 25 2023, 9:22 PM
jlduran_gmail.com added inline comments to D38783: route.8: Add information about ROUTE_MPATH and FIB_ALGO.
Feb 25 2023, 8:21 PM
jlduran_gmail.com added a comment to D38771: CONTRIBUTING.md: Add in for github pull requests.

Thank you for clarifying!

Feb 25 2023, 6:50 PM
jlduran_gmail.com added inline comments to D38783: route.8: Add information about ROUTE_MPATH and FIB_ALGO.
Feb 25 2023, 6:39 PM
jlduran_gmail.com added a comment to D38783: route.8: Add information about ROUTE_MPATH and FIB_ALGO.

Nice!
Here are a few basic suggestions.
Thank you!

Feb 25 2023, 6:38 PM
jlduran_gmail.com requested review of D38766: release: Remove lang/python2 from GCE's pkg list.
Feb 25 2023, 9:14 AM

Feb 24 2023

jlduran_gmail.com updated the diff for D38470: ping tests: Add tests for IP header options.

Now that the fix is in place, just commit the tests.

Feb 24 2023, 8:45 PM
jlduran_gmail.com abandoned D38593: ping: Fix an unsigned integer overflow (D38470 alternate take).
Feb 24 2023, 8:39 PM
jlduran_gmail.com added inline comments to D38751: growfs_fstab startup script: set dumpdev to AUTO.
Feb 24 2023, 5:15 AM
jlduran_gmail.com added a comment to D38744: ping: Fix integer underflow resuling in a ping -R segfault.

I have also tested this revision, and it is passing all my tests.
I also agree that this is the simpler approach, since it essentially reverts hlen to being a signed integer again.
If this revision gets accepted, I'll update mine to just submit the tests.

Feb 24 2023, 5:10 AM
jlduran_gmail.com added inline comments to D38751: growfs_fstab startup script: set dumpdev to AUTO.
Feb 24 2023, 3:32 AM

Feb 23 2023

jlduran_gmail.com added a comment to D38431: ping: Reference implementation.
In D38431#881732, @cy wrote:

See https://reviews.freebsd.org/D38744 for a simpler alternative.

Feb 23 2023, 4:29 PM
jlduran_gmail.com added a comment to D38744: ping: Fix integer underflow resuling in a ping -R segfault.

Note: another alternate solution for D38470 and D38593.

Feb 23 2023, 1:05 PM

Feb 20 2023

jlduran_gmail.com added a comment to D38469: ping: Print the IP options of the original packet.

Address suggestions (not sure if this fits the bill).
EDIT: Let me know if adding const to a bunch of required places is preferred.

Apologies for the delay, 13.2 release process is ongoing, so the team and myself are mostly working on addressing the arising issues. Hope we'll be able to get to this (and other) ping diffs closed to the end of the week.
Thank you for being so patient!

No problem at all. Take all the time needed. I can imagine how things are at the moment. I have also stalled the submission of other, minor fixes planned until the slush curfew is lifted.

Feb 20 2023, 5:19 PM

Feb 18 2023

jlduran_gmail.com added a comment to D37722: Add new rc: machine_id to generate /etc/machine-id.

This is good, but it doesn't match what Linux does. Both systemd and dbus generate 32 character UUID strings, while this creates 36 character ones.

I'd suggest we strip the '-' characters from the machine-id file, and possibly think about ensuring that dbus's idea of the machine-id is the same as the one generated here, or since dbus will use /etc/machine-id if /var/lib/dbus/machine-id doesn't exist, maybe not generating the latter at all.

@tcberner regarding this comment, should we change it to /bin/uuidgen -r | tr -d - > $t, or something similar? or is not really necessary to strip the -s?

Moin moin

I probably misread the documentation that said that modern systemd creates valid UUIDs. But that probably did not mean also it uses the 'dashed' format.

mfg Tobias

Feb 18 2023, 5:01 PM
jlduran_gmail.com added a comment to D37722: Add new rc: machine_id to generate /etc/machine-id.

This is good, but it doesn't match what Linux does. Both systemd and dbus generate 32 character UUID strings, while this creates 36 character ones.

I'd suggest we strip the '-' characters from the machine-id file, and possibly think about ensuring that dbus's idea of the machine-id is the same as the one generated here, or since dbus will use /etc/machine-id if /var/lib/dbus/machine-id doesn't exist, maybe not generating the latter at all.

Feb 18 2023, 3:24 PM

Feb 15 2023

jlduran_gmail.com added a comment to D38605: wc: Improve test coverage..

Elegant test implementation! I wonder if the Freudians will find it too scatological.

Feb 15 2023, 2:53 PM

Feb 14 2023

jlduran_gmail.com added a comment to D38470: ping tests: Add tests for IP header options.

@markj I've created D38593 as an exercise.

Feb 14 2023, 6:43 PM
jlduran_gmail.com requested review of D38593: ping: Fix an unsigned integer overflow (D38470 alternate take).
Feb 14 2023, 6:42 PM
jlduran_gmail.com updated the diff for D38469: ping: Print the IP options of the original packet.

Address suggestions (not sure if this fits the bill).
EDIT: Let me know if adding const to a bunch of required places is preferred.

Feb 14 2023, 4:52 PM
jlduran_gmail.com added a comment to D38470: ping tests: Add tests for IP header options.

So isn't there now a mismatch between hlen and cp when handling IPOPT_LSRR and other options? The loop header increments cp once each iteration but doesn't decrement hlen to match.

I'll test locally with a packet containing LSRR options with just a couple of routers + NOP and see the remaining hlen value.

Feb 14 2023, 3:59 AM