tcpdump mailing list archives

about struct in_addr


From: "Lan Qing" <efiish () gmail com>
Date: Sat, 6 May 2006 12:18:13 +0800

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.


Current thread: