$NetBSD: patch-ai,v 1.4 1999/09/15 21:30:59 tron Exp $ --- sockunion.h.orig Wed Sep 15 23:28:18 1999 +++ sockunion.h Wed Sep 15 23:28:18 1999 @@ -0,0 +1,18 @@ +#ifndef INET_ADDRSTR +#define INET_ADDRSTRLEN 16 +#endif + +union sockunion { + struct sockinet { + u_char si_len; + u_char si_family; + u_short si_port; + } su_si; + struct sockaddr_in su_sin; +#ifdef INET6 + struct sockaddr_in6 su_sin6; +#endif +}; +#define su_len su_si.si_len +#define su_family su_si.si_family +#define su_port su_si.si_port