Date: Tue, 7 Nov 2000 14:02:24 -0800 (PST) From: Luigi Rizzo <rizzo@aciri.org> To: wollman@khavrinen.lcs.mit.edu (Garrett Wollman) Cc: tmoestl@gmx.net, freebsd-net@FreeBSD.ORG, rizzo@aciri.org (Luigi Rizzo) Subject: Re: setting source address for UDP packets Message-ID: <200011072202.OAA03771@iguana.aciri.org> In-Reply-To: <200011072156.QAA87433@khavrinen.lcs.mit.edu> from Garrett Wollman at "Nov 7, 2000 4:56:23 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> > is there any way to set the source address of an UDP (over IPv4) packet > > without using bind() or changing the socket state, > > No. This is a long-standing bug. It shouldn't be too hard to fix if > you're up to a bit of kernel hacking. you mean by adding a sendto_from() system call where you also pass the address for the source ? Or [really dirty hack here] an extended sendto() where the sockaddr really points to an array of two addresses (with "tolen" set accordingly) ? cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011072202.OAA03771>