LJ Archive

Listing 1

/* Internet address. */
struct in_addr {
     unsigned long int       s_addr;
};

/* Structure describing an Internet (IP) /*
/* socket address. */
#define __SOCK_SIZE__   16          /* sizeof(struct sockaddr)      */
struct sockaddr_in {
  short int             sin_family; /* Address family               */
  unsigned short int    sin_port;   /* Port number                  */
  struct in_addr        sin_addr;   /* Internet address             */

  /* Pad to size of `struct sockaddr'. */
  unsigned char  __pad[__SOCK_SIZE__ - sizeof(short int) -
                sizeof(unsigned short int) - sizeof(struct in_addr)];
};
LJ Archive