ip_sockaddr_s Struct Reference
[Generic IP Addresses]

#include <ip_addr.h>


Data Fields

uint16_t sa_family
uint8_t sa_data [sizeof(struct sockaddr_in6)-sizeof(uint16_t)]


Detailed Description

IP addresses structure big enough for an IPv6 address by default (minimum size == sizeof(struct sockaddr_in6)). Compatible with all of struct sockaddr, struct sockaddr_in, and struct sockaddr_in6. If used to represent an IPv4 or IPv6 address, (&(s->sin_addr) == &(s->sin6_addr) == &(s->sa_pad)) . If used to represent an AF_LLC address (ethernet), &(((ip_addr_t*)s)->sa_data) == &(((struct sockaddr*)s)->sa_data).

Definition at line 55 of file ip_addr.h.


The documentation for this struct was generated from the following file:
Generated on Mon Aug 14 17:25:56 2006 for libdhcp by  doxygen 1.4.7