]> The Tcpdump Group git mirrors - tcpdump/commit
Don't clear stuff we'll be overwriting in its entirety.
authorGuy Harris <[email protected]>
Wed, 2 Mar 2011 00:38:24 +0000 (16:38 -0800)
committerGuy Harris <[email protected]>
Wed, 2 Mar 2011 00:38:24 +0000 (16:38 -0800)
commit64c6e944c6c7ff896ceaf0c34fa085346c248639
treeb7273ebb67b6f6c4cb598271f491603f6e8c440b
parent778484332055b9f4197eacac53c88685e9fca3e9
Don't clear stuff we'll be overwriting in its entirety.

We only need to clear out the tha structure if we support IPv6, so that
the addresses are IPv6 addresses, but we only have IPv4 addresses, so
that the rest of the address bytes need to be set somehow.

Also, explain what we're doing, so people don't ask why we're not
zeroing it if we don't support IPv6.
print-tcp.c