Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2000 01:46:52 +0100
From:      Thomas Moestl <tmoestl@gmx.net>
To:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] per-packet UDP source address selection for sendmsg
Message-ID:  <20001112014652.A12685@forge.local>
In-Reply-To: <20001111183857.A9781@forge.local>; from tmoestl@gmx.net on Sat, Nov 11, 2000 at 06:38:57PM %2B0100
References:  <20001111183857.A9781@forge.local>

next in thread | previous in thread | raw e-mail | index | archive | help
> As this is my first kernel patch, could someone please give it a quick
> look before I submit it, so that I can be sure that it contains no stupid
> glitches? 
> [...]
> + 					bzero(&src, sizeof(src));
> + 					src.sin_family = AF_INET;
> + 					src.sin_port = inp->inp_lport;
> + 					src.sin_addr = *(struct in_addr *)CMSG_DATA(cm);
> + 					bound = 1;
Except of course forgetting to set src.sin_len :(

Thomas


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001112014652.A12685>