Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Very early on, the
Src
/Dst
IP addresses were printed in hex notation (%08x
), which will always be 8-characters wide. It was later changed to use a dot-decimal notation. Depending on the IP address length, theSrc
andDst
headers may require a different padding. Use the source and destination IP lengths as padding for the headers.Also, print an
Opts
(options) header, if there are options present. It has been abbreviated toOpts
to match the length of the previousData
header, removed in ef9e6dc.Print the header info such that no trailing spaces are produced. As some git workflows may automatically trim them, and make the tests fail (see 25b86f8).
Before
After
And with options:
Before
After
Differential Revision: https://reviews.freebsd.org/D39561