or download this
use strict;
use Net::TcpDumpLog;
...
my $tcp_obj = NetPacket::TCP->decode( $ip_obj->{data});
print ("$i $ip_obj->{src_ip} ($tmpIPs),$ip_obj->{dest_ip} ($tmpIP
+d),$ip_obj->{len},$ip_obj->{tos},$ip_obj->{ttl},$ip_obj->{foffset},$t
+cp_obj->{acknum},$tcp_obj->{flags}, $tcp_obj->{winsize}, $tcp_obj->{c
+ksum}, $tcp_obj->{urg}\n");