2010-03-29 23:58:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
2006-11-08 11:47:44 +00:00
|
|
|
#ifndef s_addr
|
|
|
|
|
2010-03-29 23:58:01 +00:00
|
|
|
typedef struct in_addr {
|
|
|
|
union {
|
|
|
|
struct {UCHAR s_b1,s_b2,s_b3,s_b4;} S_un_b;
|
|
|
|
struct {USHORT s_w1,s_w2;} S_un_w;
|
|
|
|
ULONG S_addr;
|
|
|
|
} S_un;
|
2006-11-08 11:47:44 +00:00
|
|
|
} IN_ADDR, *PIN_ADDR, FAR *LPIN_ADDR;
|
|
|
|
|
|
|
|
#define s_addr S_un.S_addr
|
|
|
|
#define s_host S_un.S_un_b.s_b2
|
|
|
|
#define s_net S_un.S_un_b.s_b1
|
|
|
|
#define s_imp S_un.S_un_w.s_w2
|
|
|
|
#define s_impno S_un.S_un_b.s_b4
|
|
|
|
#define s_lh S_un.S_un_b.s_b3
|
|
|
|
|
2010-03-29 23:58:01 +00:00
|
|
|
#endif /* s_addr */
|
2006-11-08 11:47:44 +00:00
|
|
|
|