mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
- Add these two missing headers.
svn path=/trunk/; revision=21363
This commit is contained in:
parent
43a02bfa45
commit
1a35a96fa2
2 changed files with 40 additions and 0 deletions
19
reactos/include/in6addr.h
Normal file
19
reactos/include/in6addr.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef s6_addr
|
||||
|
||||
typedef struct in6_addr
|
||||
{
|
||||
union
|
||||
{
|
||||
UCHAR Byte[16];
|
||||
USHORT Word[8];
|
||||
} u;
|
||||
} IN6_ADDR, *PIN6_ADDR, FAR *LPIN6_ADDR;
|
||||
|
||||
#define in_addr6 in6_addr
|
||||
#define _S6_un u
|
||||
#define _S6_u8 Byte
|
||||
#define s6_addr _S6_un._S6_u8
|
||||
#define s6_bytes u.Byte
|
||||
#define s6_words u.Word
|
||||
|
||||
#endif
|
21
reactos/include/inaddr.h
Normal file
21
reactos/include/inaddr.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef s_addr
|
||||
|
||||
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;
|
||||
} 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
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in a new issue