From owner-freebsd-hackers Wed Oct 8 09:22:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA27482 for hackers-outgoing; Wed, 8 Oct 1997 09:22:21 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from srv.net (snake.srv.net [199.104.81.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA27470 for ; Wed, 8 Oct 1997 09:22:15 -0700 (PDT) (envelope-from cmott@srv.net) Received: from darkstar.home (dialin1.anlw.anl.gov [141.221.254.101]) by srv.net (8.8.5/8.8.5) with SMTP id KAA32052 for ; Wed, 8 Oct 1997 10:22:06 -0600 (MDT) Date: Wed, 8 Oct 1997 09:21:34 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar.home To: freebsd-hackers@freebsd.org Subject: udp and ifconfig alias Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk If I have multiple addresses on the same interface created with ifconfig alias, and a process is listening on udp *.7654, when a packet is returned after a call to recvfrom(), is it possible to tell which address it was sent to? I have tried calling getsockname(), but my test code doesn't seem to be working. And the more I think about it, getsockname() doesn't make sense for a connectionless protocol like UDP. Charles Mott