]> The Tcpdump Group git mirrors - tcpdump/commit
Pass the length from the payload header to the print routines for
authorguy <guy>
Fri, 12 Mar 2004 01:26:59 +0000 (01:26 +0000)
committerguy <guy>
Fri, 12 Mar 2004 01:26:59 +0000 (01:26 +0000)
commitc6d12aeb6cd432560b53d05d662825743842787d
tree90584c552d042f5cd96b4d873cba9dd1d3369941
parent0779792857c366b4fe44a5f69a1965432607f6bf
Pass the length from the payload header to the print routines for
various payload types.  Use that in those routines rather than getting
the length ourselves (which fixes a case where we were getting it
incorrectly, forgetting to "ntohs()" it).

In "isakmp_id_print()", if the item length is less than the size of the
fixed-length portion of the payload, don't subtract the latter from the
former and use it as the length of the variable-length portion, just set
the length in question to 0.
print-isakmp.c