Re: in_connect

Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Sat, 13 Jun 1998 16:47:21 +0100 (BST)


On Fri, 12 Jun 1998, MUD Admin wrote:

> I do appologise if this post is offtopic but in net/ipv4/af_inet.c in the
> function inet_connect, could someone tell me the variable to reference to
> get the destination port? I tried sk->sin_port, sk->port,
> uaddr->sin_port, and uaddr->port. None of these worked.

You have been htons()ing them, haven't you?

Matthew.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu