On Mon, Dec 02, 2002 at 09:23:56AM -0500, Jason House wrote: > Per Ronnie's suggestions, I have updated packet-tcp.c and tap-tcp_close > to use the last parameter to the packet() call... Attached is two raw > source files as well as a diff to touch makefiles and packet-tcp.c
It's a bit ugly to have "td" be static; I suppose it's not a problem in most cases, but one could imagine TCP-over-IP-over-X.25-over-TCP captures in which there's more than one TCP header per packet. Unfortunately, as a pointer to it is passed to "tap_queue_packet()", it can't be local to "dissect_tcp()".