Sync with trunk (r48545)
[reactos.git] / include / psdk / inaddr.h
1 #pragma once
2
3 #ifndef s_addr
4
5 typedef struct in_addr {
6 union {
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 /* s_addr */
21