[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Datagram source address question



On Mon, 12 Jun 2000, Mika Liljeberg wrote:

> > The server responds to ::1 with a reply. Now the problems start:
> > 
> > Even though I used bind() to bind the server socket to an explicit
> > address, the source address of the server->client datagram turns out to be
> > ::1, as determined from what recvfrom() puts in the from address argument.
> 
> This shouldn't happen. The source address selection should not override
> an explicitly bound source address.

I agree, so it appears to be a bug then.
 
> > So when the client in turn replies, it will send to ::1, which is an
> > address the server is not listening to, and the communication comes to a
> > halt.
> > 
> > Is this a bug in the IPv6 stack, or have I misunderstood something?
> 
> Well, it looks to me that there is a problem with source address
> selection. Possibly some weird loopback "optimization". Which kernel
> version are you running, anyway?

I'm using 2.3.99-pre6, with glibc 2.1.3.

Regards,

Pontus

-- 
Pontus Lidman, pontus@mathcore.com, Software Engineer
No matter how cynical you get, it's impossible to keep up.
Scene: www.dc-s.com | MUD: tyme.envy.com 6969 | irc: irc.quakenet.eu.org



Reply to: