[tcpdump-workers] pcap and loopback headers

2006-07-26 Thread Adam M.
This is probably a FAQ++, but I'm having trouble using Pcap for savefiles that were captured from a loopback device. There are 2 problems here: 1) In general, how is one supposed to determine what the layer-2 protocol is? I've traditionally always assumed Ethernet, because I don't know how to dete

[tcpdump-workers] Verbose output of tcpdump on protocols of different level

2006-07-26 Thread Mikhail Manuylov
Hello, I need to parse output of tcpdump printing contents of snmp packets and insert to database. First time I thought that output can be explained with some regexps, but when I looked into sources I've suddenly changed my mind and have choosed to yacc. Now I'm writing grammar of tcpdump's outp

Re: [tcpdump-workers] regarding offset IP packet

2006-07-26 Thread sandeep nitta
Hello all, i want to write a tool which takes SIP application data from a text file and appends that onto dummy tcp/udp ,ip and ehternet headers. In short, i want to hand make SIP packets. Can anyone tell me which sites would be useful, or can anyone give me a high level idea of how to do that ?