]> The Tcpdump Group git mirrors - tcpdump/commit
Don't assume the ONC RPC header is nicely aligned.
authorGuy Harris <[email protected]>
Tue, 25 Aug 2015 01:14:55 +0000 (18:14 -0700)
committerGuy Harris <[email protected]>
Tue, 25 Aug 2015 01:14:55 +0000 (18:14 -0700)
commit5fc3681a13029958e5515213e13da1f19f338a7e
tree93b40df53d35412dd27795dd496e798e94e82f99
parent2d82e8fee78b4c2eafdffac97d5c11a3b58952ca
Don't assume the ONC RPC header is nicely aligned.

Use UNALIGNED_MEMCPY() to extract the XID from it; otherwise, this might
crash on machines that require strict alignment (e.g., SPARC machines).

Fixes GitHub issue #478.
print-nfs.c