2008-12-08 23:28:25

by Steinar H. Gunderson

[permalink] [raw]
Subject: Re: [PATCH 0/3] AF_INET6 support for probe_bothports()

On Mon, Dec 08, 2008 at 05:55:40PM -0500, Steve Dickson wrote:
> Yes... one does pass pointers of struct sockaddr to the majority
> of the network system call such as bind().. but conventionally
> I've seen a lot of declare struct sockaddr as memory then typecasting
> that memory into a struct sockaddr_in pointer...

That's just wrong. Don't do that :-) (Where have you seen this, by the way?)

/* Steinar */
--
Homepage: http://www.sesse.net/