Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /**
  2.  * This file has no copyright assigned and is placed in the Public Domain.
  3.  * This file is part of the w64 mingw-runtime package.
  4.  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5.  */
  6.  
  7. #ifndef s_addr
  8.  
  9. #include <_bsd_types.h>
  10.  
  11. typedef struct in_addr {
  12.   union {
  13.     struct { u_char  s_b1, s_b2, s_b3, s_b4; } S_un_b;
  14.     struct { u_short s_w1, s_w2; } S_un_w;
  15.     u_long S_addr;
  16.   } S_un;
  17. } IN_ADDR, *PIN_ADDR, *LPIN_ADDR;
  18.  
  19. #define s_addr  S_un.S_addr
  20. #define s_host  S_un.S_un_b.s_b2
  21. #define s_net   S_un.S_un_b.s_b1
  22. #define s_imp   S_un.S_un_w.s_w2
  23. #define s_impno S_un.S_un_b.s_b4
  24. #define s_lh    S_un.S_un_b.s_b3
  25.  
  26. #endif /* s_addr */
  27.  
  28.