Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Mar 2002 10:06:42 -0500
From:      Sergey Babkin <sergey@caldera.com>
To:        Tony Finch <dot@dotat.at>
Cc:        chawla@caldera.com, arch@freebsd.org
Subject:   Re: proposition for new socket syscalls {send,recv}fromto
Message-ID:  <3C838D82.A9CEA74B@caldera.com>
References:  <20020303195801.A17586@chiark.greenend.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Tony Finch wrote:
> 
> I agree that these calls are necessary and should have been presend from
> the start, but you seem to be unaware of the usual way of implementing
> UDP servers that are aware of multihoming, such as BIND. They typically
> use SIOCGIFADDR to read the list of interfaces on the machine then bind
> a socket to each one. The server can choose the appropriate socket to
> use according to the source address that is required.  However this
> doesn't deal all that well with a dynamically changing list of interface
> addresses...

Hm, from looking at the BIND code it seems to reload the list of interfaces
periodically, so it can handle the changing list of interfaces. And it has 
a fair amount of code dealing with it. But not all the servers do this: 
for instance, tftpd does not.

-SB

-- 
Sergey Babkin                             sergey@caldera.com
Escalations Research Group, Caldera - NJ  (908)790-2385

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




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