From owner-freebsd-net Wed Nov 8 3: 1:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id CC2FE37B479 for ; Wed, 8 Nov 2000 03:01:52 -0800 (PST) Received: from victoria-137.budapest.interware.hu ([195.70.63.137] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 13tSzC-0000jW-00; Wed, 08 Nov 2000 12:01:46 +0100 Message-ID: <3A093283.48BE41D8@elischer.org> Date: Wed, 08 Nov 2000 03:01:23 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Luigi Rizzo Cc: Garrett Wollman , tmoestl@gmx.net, freebsd-net@FreeBSD.ORG Subject: Re: setting source address for UDP packets References: <200011072202.OAA03771@iguana.aciri.org> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luigi Rizzo wrote: > > > > 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 well you could use divert sockets to send UDP packets (bleah) > 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 -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message