Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2001 14:01:40 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        jayanth <jayanth@yahoo-inc.com>
Cc:        net@FreeBSD.ORG
Subject:   Re: simple udp question
Message-ID:  <200109272101.f8RL1ep95144@arch20m.dellroad.org>
In-Reply-To: <20010927120750.C26671@yahoo-inc.com> "from jayanth at Sep 27, 2001 12:07:50 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
jayanth writes:
> one of the developers here noticed that if a process does
> the following three steps:
> 
> binds a udp socket to a specific IP address
> connects the udp socket
> calls connect with a NULL parameter, to disconnect the socket.
> 
> The socket now loses its originally bound IP address because
> udp_disconnect forces the local address of the socket to be INADDR_ANY. 
> 
> Can we change this behaviour to retain the originally bound IP address ? 

Sounds logical to me..

It might be worth doing some research to figure out if there was
some reason for forcing the address to INADDR_ANY in the first place,
i.e., if this was done to fix some other bug somewhere (which
we'd be resurrecting).

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

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?200109272101.f8RL1ep95144>