if (getsockname(sock_descriptor, (struct sockaddr *)&sock_address, (socklen_t*)sizeof(struct sockaddr_in))==-1)
No way this doesn't work, try:
socklen_t tmp = sizeof(struct sockaddr_in);
if (getsockname(sock_descriptor, (struct sockaddr *)&sock_address, &tmp)==-1)
Later,
David S. Miller
davem@dm.cobaltmicro.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/