Re: [tcpdump-workers] Question about "pcap_next()"

2004-11-02 Thread Kathy Chen
Thanks! As Guy Harris pointed out, it's probably because the data isn't normal text, it's in binary format. I'll try to see. Thanks. kathy > We can't help you without source code. > > Regards, > > Seb :) > __ Do you Yahoo!? Check out the n

Re: [tcpdump-workers] Question about "pcap_next()"

2004-11-01 Thread Guy Harris
(Blah blah blah another wrong from line blah blah blah avoid the duplicate message detector blah blah blah.) Kathy Chen wrote: When I call u_char *packet = pcap_next(handle, &header); I can get the packet length value, but I can't really get the "packet" data (Using printf(..., packet)). The

Re: [tcpdump-workers] Question about "pcap_next()"

2004-11-01 Thread Sebastien Vincent
We can't help you without source code. Regards, Seb :) Kathy Chen a écrit : Hi, all, When I call u_char *packet = pcap_next(handle, &header); I can get the packet length value, but I can't really get the "packet" data (Using printf(..., packet)). Even if I call this "pcap_next()" continuously,

[tcpdump-workers] Question about "pcap_next()"

2004-11-01 Thread Kathy Chen
Hi, all, When I call u_char *packet = pcap_next(handle, &header); I can get the packet length value, but I can't really get the "packet" data (Using printf(..., packet)). Even if I call this "pcap_next()" continuously, the same problem exist. Could any of you point out the reason for me? Fr