Re: [tcpdump-workers] about struct in_addr

2006-05-05 Thread Guy Harris
Lan Qing wrote: hello, I read the fllowing words in the c header file I.e., the header that came with your OS, not the header that comes with tcpdump? /* Internet address. */ typedef uint32_t in_addr_t; struct in_addr { in_addr_t s_addr; };" the struct in_addr have only one variable

Re: [tcpdump-workers] about struct in_addr

2006-05-05 Thread Hannes Gredler
what is the point ? - the storage space is the same ... Lan Qing wrote: hello, I read the fllowing words in the c header file " /* Internet address. */ typedef uint32_t in_addr_t; struct in_addr { in_addr_t s_addr; };" the struct in_addr have only one variable in it, is there any necessar

[tcpdump-workers] about struct in_addr

2006-05-05 Thread Lan Qing
hello, I read the fllowing words in the c header file " /* Internet address. */ typedef uint32_t in_addr_t; struct in_addr { in_addr_t s_addr; };" the struct in_addr have only one variable in it, is there any necessary to define a struct like that? why not use "typedef in_addr_t in_addr;" d

Re: [tcpdump-workers] what is the flag -c mean

2006-05-05 Thread Hannes Gredler
the -c flag (c = count) means that capturing is stopped after packets ... /hannes Lan Qing wrote: hello, I'm of tcpdump,and i got the fllowing words while i'm reading the tcpdump man page " Tcpdump will, if not run with the -c flag, continue capturing packets until it is interrupted by a

[tcpdump-workers] what is the flag -c mean

2006-05-05 Thread Lan Qing
hello, I'm of tcpdump,and i got the fllowing words while i'm reading the tcpdump man page " Tcpdump will, if not run with the -c flag, continue capturing packets until it is interrupted by a SIGINT signal or a SIGTERM sig-nal ; if run with the -c flag, it will capture packets until it is