From owner-freebsd-hackers Thu Nov 27 15:21:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA00333 for hackers-outgoing; Thu, 27 Nov 1997 15:21:11 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA00328 for ; Thu, 27 Nov 1997 15:21:06 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id XAA09193; Thu, 27 Nov 1997 23:16:53 +0100 From: Luigi Rizzo Message-Id: <199711272216.XAA09193@labinfo.iet.unipi.it> Subject: a networking question... To: hackers@freebsd.org Date: Thu, 27 Nov 1997 23:16:53 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have the following problem with UDP: if I receive a packet with recvmsg, the identity of the sender is returned in a sockaddr structure. However, I have no idea of the destination address this packet was sent to. On a multihomed machine, this might be a problem even with unicast; on a single-homed machine, this is a problem with multicast. Is there any way to be returned the destination address as well ? Cheers Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________