sockfd=accept(fd, (struct sockaddr *)&sin, &sinl); if (sin.sin_family==AF_INET6) if (sinl<sizeof(struct sockaddr_in6)) return ERROR; /* ok */if it happens to meet a glibc-2.2 / linux-2.2.18 system?
A: The kernel sets sinl to 24. sizeof(struct sockaddr_in6), if taken from netinet/in.h, is 28.
Things like this aren't likely to make me happy.
