]> The Tcpdump Group git mirrors - tcpdump/commit
From Eddie Kohler <[email protected]>: In "ip_finddst()":
authorguy <guy>
Fri, 25 Jun 2004 01:20:08 +0000 (01:20 +0000)
committerguy <guy>
Fri, 25 Jun 2004 01:20:08 +0000 (01:20 +0000)
commit6c02156d08bdf0e588e36265cbdeffa91f7a55b0
treef2809fe754dfffb3457e7bc447204efced46b6a1
parent65ff785f67debbda8cdc721b2352b2aad2206c33
From Eddie Kohler <[email protected]>: In "ip_finddst()":

quit as soon as we see IPOPT_EOL;

*don't* quit as soon as we see IPOPT_NOP, just advance to the
next option, if any;

implement "quit" as "return the destination address from the IP
header rather than as "return 0".

Also, return the IP header destination address if we see a
source-routing option with a too-short length.
CREDITS
print-ip.c