tcpdump mailing list archives
Re: about struct in_addr
From: Hannes Gredler <hannes () juniper net>
Date: Sat, 06 May 2006 08:11:25 +0200
what is the point ? - the storage space is the same ... Lan Qing wrote:
hello, I read the fllowing words in the c header file <netinet/in.h> " /* 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;" directly? thank you! - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
- This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- about struct in_addr Lan Qing (May 05)
- Re: about struct in_addr Hannes Gredler (May 06)
- Re: about struct in_addr Guy Harris (May 06)
- Re: about struct in_addr Sebastien Raveau (May 06)
- Re: about struct in_addr Lan Qing (May 08)