Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traceroute/traceroute6: Cleanup usage and manual fixes #901

Closed
wants to merge 5 commits into from

Conversation

jlduran
Copy link
Member

@jlduran jlduran commented Nov 17, 2023

The following are a series of minor fixes, intended to reduce the differences between the two utilities, in the event of a possible future unification.

@jlduran
Copy link
Member Author

jlduran commented Nov 17, 2023

Note

Given the differences between our code in contrib and the actual upstream sources have diverged considerably.

@jlduran
Copy link
Member Author

jlduran commented Nov 17, 2023

Note to self: Cross-builds are failing for aarch64-clang-12 after 9eecef0, due to clang-12 being too old?
EDIT: llvm/llvm-project@d5df500
Fixed by: 9560ac4

@bsdimp
Copy link
Member

bsdimp commented Dec 26, 2023

So this generally looks good, but the manual page could use a little attention as noted wrt line breaks. If you are really ambitious, you could re-wrap the lines now broken (the join comments I made is a minimal subset of this).

Otherwise, I like it. You now have your commit bit and if you do the above, you can mark this as 'Reviewed-by: imp' when you commit it :)

@jlduran
Copy link
Member Author

jlduran commented Dec 27, 2023

Will do!

@jlduran jlduran force-pushed the fix-traceroute-packlen branch from 009efd4 to d5791f0 Compare December 27, 2023 02:21
jlduran added a commit to jlduran/freebsd-src that referenced this pull request Dec 27, 2023
Silence the warning:

argument to 'sizeof' in 'strncpy' call is the same expression as the
source; did you mean to use the size of the destination?"

by using strlcpy() and the size of the destination (device).

No functional change intended.

Reviewed by:	imp
Pull Request:	freebsd#901
jlduran added a commit to jlduran/freebsd-src that referenced this pull request Dec 27, 2023
Standardize the documentation and update it to reflect the current
values.

Reviewed by:	imp
Pull Request:	freebsd#901
jlduran added a commit to jlduran/freebsd-src that referenced this pull request Dec 27, 2023
Reviewed by:	imp
Pull Request:	freebsd#901
jlduran added a commit to jlduran/freebsd-src that referenced this pull request Dec 27, 2023
Reviewed by:	imp
Pull Request:	freebsd#901
jlduran added a commit to jlduran/freebsd-src that referenced this pull request Dec 27, 2023
@jlduran
Copy link
Member Author

jlduran commented Dec 27, 2023

The man pages were originally wrapped at 72 CPL. Old school! Felt a little sad extending it to 80 chars.
Thank you for the review!

Silence the warning:

argument to 'sizeof' in 'strncpy' call is the same expression as the
source; did you mean to use the size of the destination?"

by using strlcpy() and the size of the destination (device).

No functional change intended.
Standardize the documentation and update it to reflect the current
values.
@jlduran jlduran force-pushed the fix-traceroute-packlen branch from d5791f0 to d931b81 Compare January 8, 2024 13:31
@bsdimp bsdimp added the merged label Feb 3, 2024
@bsdimp
Copy link
Member

bsdimp commented Feb 3, 2024

looks good now, minor tweaks to one or two of the commit messagesg.

@bsdimp bsdimp closed this Feb 3, 2024
freebsd-git pushed a commit that referenced this pull request Feb 3, 2024
Silence the warning:

argument to 'sizeof' in 'strncpy' call is the same expression as the
source; did you mean to use the size of the destination?"

by using strlcpy() and the size of the destination (device).

No functional change intended.

Reviewed by: imp
Pull Request: #901
freebsd-git pushed a commit that referenced this pull request Feb 3, 2024
Standardize the documentation and update it to reflect the current
values.

Reviewed by: imp
Pull Request: #901
freebsd-git pushed a commit that referenced this pull request Feb 3, 2024
Reviewed by: imp
Pull Request: #901
freebsd-git pushed a commit that referenced this pull request Feb 3, 2024
Fix a number of warning mandoc -Tlint and igor turned up.  No changes
intended.

Reviewed by: imp
Pull Request: #901
freebsd-git pushed a commit that referenced this pull request Feb 3, 2024
Reviewed by: imp
Pull Request: #901
@jlduran jlduran deleted the fix-traceroute-packlen branch February 13, 2024 20:58
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Aug 1, 2024
Silence the warning:

argument to 'sizeof' in 'strncpy' call is the same expression as the
source; did you mean to use the size of the destination?"

by using strlcpy() and the size of the destination (device).

No functional change intended.

Reviewed by: imp
Pull Request: freebsd/freebsd-src#901
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Aug 1, 2024
Standardize the documentation and update it to reflect the current
values.

Reviewed by: imp
Pull Request: freebsd/freebsd-src#901
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Aug 1, 2024
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Aug 1, 2024
Fix a number of warning mandoc -Tlint and igor turned up.  No changes
intended.

Reviewed by: imp
Pull Request: freebsd/freebsd-src#901
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants