3 Apr 2001 uweo   » (Journeyer)

Q: What happens with this code:
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.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!