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

[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

Re: [tcpdump-workers] Question about "promiscuous" mode

2004-11-01 Thread Kathy Chen
Thanks for your reply! xiaofang > >I want to know in what situations the machine's > >network is set to "promiscuous" mode. For example, > I > >know when I execute "tcpdump" on my machine, it's > set > >to be in promiscuous mode. Any other cases? > > > > > Yes, that's program's that decide to

[tcpdump-workers] Question about "promiscuous" mode

2004-11-01 Thread Kathy Chen
Hi, Sorry to bother you. I want to know in what situations the machine's network is set to "promiscuous" mode. For example, I know when I execute "tcpdump" on my machine, it's set to be in promiscuous mode. Any other cases? And is it correct that without "tcpcump", the network is not in promiscu