small ipv6 doc changes; nslookup a tiny bit smaller

This commit is contained in:
Denis Vlasenko
2006-11-07 19:05:43 +00:00
parent 6476cc1089
commit 8528151658
3 changed files with 6 additions and 4 deletions

View File

@@ -212,7 +212,8 @@ structure the code differently.
Here's the corresponding server C code for a dual-stack platform:
int ServSock, csock;
struct sockaddr addr, from;
/* struct sockaddr is too small! */
struct sockaddr_storage addr, from;
...
ServSock = socket(AF_INET6, SOCK_STREAM, PF_INET6);
bind(ServSock, &addr, sizeof(addr));