netdev
[Top] [All Lists]

Re: UDP sockets bound to ANY send answers with wrong src ip address

To: vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: UDP sockets bound to ANY send answers with wrong src ip address
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Wed, 09 Jun 2004 21:24:30 +0900 (JST)
Cc: netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx, davem@xxxxxxxxxx, pekkas@xxxxxxxxxx, jmorris@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx
In-reply-to: <200406091425.39324.vda@port.imtp.ilyichevsk.odessa.ua>
Organization: USAGI Project
References: <200406091425.39324.vda@port.imtp.ilyichevsk.odessa.ua>
Sender: netdev-bounce@xxxxxxxxxxx
In article <200406091425.39324.vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> (at Wed, 9 
Jun 2004 14:25:39 +0300), Denis Vlasenko <vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> 
says:

> I observe that UDP sockets listening on ANY
> send response packets with ip addr derived from
> ip address of interface which is used to send 'em
> instead of using dst ip address of client's packet.

use IP_PKTINFO when responding the client.

--yoshfuji

<Prev in Thread] Current Thread [Next in Thread>