1eef217d1a069936082883e67244d74686b8f6f4
[reactos.git] / include / psdk / inaddr.h
1 #ifndef s_addr
2
3 typedef struct in_addr
4 {
5 union
6 {
7 struct {UCHAR s_b1,s_b2,s_b3,s_b4;} S_un_b;
8 struct {USHORT s_w1,s_w2;} S_un_w;
9 ULONG S_addr;
10 } S_un;
11 } IN_ADDR, *PIN_ADDR, FAR *LPIN_ADDR;
12
13 #define s_addr S_un.S_addr
14 #define s_host S_un.S_un_b.s_b2
15 #define s_net S_un.S_un_b.s_b1
16 #define s_imp S_un.S_un_w.s_w2
17 #define s_impno S_un.S_un_b.s_b4
18 #define s_lh S_un.S_un_b.s_b3
19
20 #endif
21