[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-net
Subject:    Re: simple udp question
From:       Archie Cobbs <archie () dellroad ! org>
Date:       2001-09-27 21:01:40
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic