]> The Tcpdump Group git mirrors - tcpdump/commit
Add a nd_printjnp() function
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 1 Nov 2020 11:43:37 +0000 (12:43 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 1 Nov 2020 11:50:29 +0000 (12:50 +0100)
commit635e3cc92b72ca048a6b5b89b883980e4e1b4bdc
tree75769999820f0ad8c833ad24e203ac0ba8e60142
parent7bd4c9482dbd07ce2edfe20dcf652cc09866dc22
Add a nd_printjnp() function

It prints a null-padded filename (or other ASCII string), part of
the packet buffer, filtering out non-printable characters.
Stop if truncated (via GET_U_1/longjmp) or after n bytes or before
the null char, whichever occurs first.
The suffix comes from: j:longJmp, n:after N bytes, p:null-Padded.
netdissect.h
util-print.c