]> The Tcpdump Group git mirrors - tcpdump/commit
No need for casting back and forth.
authorGuy Harris <[email protected]>
Sat, 18 Jan 2014 20:06:36 +0000 (12:06 -0800)
committerGuy Harris <[email protected]>
Sat, 18 Jan 2014 20:06:36 +0000 (12:06 -0800)
commit2c56ace004c0540573ff5d1188f2d23528755f23
tree0ca3062b05a03b463c6ac6432868b979c2ed27ed
parent8f854105c8eb6ced42a364212ed0c857d6eb978b
No need for casting back and forth.

That might also convince the compiler that it can "helpfully" optimize
the copy into something that assumes 4-byte alignment, which we don't
want it to do on platforms where the optimized code will trap if the IP
header *isn't* aligned on a 4-byte boundary, given that there's no
guarantee that it *is* aligned on a 4-byte boundary.
print-ip.c