/******************************************************/
/* Copyright (C) 2008 Arch Rock Corporation           */
/* License Agreement: refer to LICENSE.txt            */
/*                                                    */
/******************************************************/

#ifndef _NETINET_IN_H
#define _NETINET_IN_H    1

#include <platform.h>

/*! IPv6 address data structure. */
typedef struct in6_addr {
  union {
    /*! IP Address as an array of bytes */
    uint8_t u6_addr8[16];
    /*! IP Address as an array of shorts */
    uint16_t u6_addr16[8];
    /*! IP Address as an array of 32-bit integers */
    uint32_t u6_addr32[4];
  } in6_u;
} in6_addr_t;

#define s6_addr    in6_u.u6_addr8
#define s6_addr16  in6_u.u6_addr16
#define s6_addr32  in6_u.u6_addr32

#endif  //_NETINET_IN_H
