> #define rx_PortOf(peer) ((peer)->saddr.ss_family == > AF_INET ? \ > ((struct sockaddr_in *) &(peer)->saddr)->sin_port : \ > ((struct sockaddr_in6 *) &(peer)->saddr)->sin6_port) > > you probably don't have struct sockaddr_in6 there. That's inside of an #ifdef AF_INET6. Are there OS's which define AF_INET6 but don't have struct sockaddr_in6? --Ken