First page Back Continue Last page Overview Graphics
Address Structure(3)
Storage for all socket address structures
#define _SS_MAXSIZE 128 /* maxumum size */
#define _SS_ALIGNSIZE (sizeof (int64_t)) /* desired alignment */
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(sa_family_t))
#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(sa_family_t) + \
_SS_PAD1SIZE + _SS_ALIGNSIZE))
struct sockaddr_storage {
sa_family_t ss_family; /* address family */
char __ss_pad1[_SS_PAD1SIZE];
int64_t __ss_align; /* force allignment */
char __ss_pad2[_SS_PAD2SIZE];
};
- Storage for all socket address structures on the system
- aligned on 64-bit boundary (w/ systems supporting IPv6)
Notes: