| To: | Denis Vlasenko <vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: UDP sockets bound to ANY send answers with wrong src ip address |
| From: | Julian Anastasov <ja@xxxxxx> |
| Date: | Wed, 9 Jun 2004 15:18:12 +0300 (EEST) |
| Cc: | netdev@xxxxxxxxxxx, <linux-net@xxxxxxxxxxxxxxx>, <davem@xxxxxxxxxx>, <yoshfuji@xxxxxxxxxxxxxx>, <pekkas@xxxxxxxxxx>, <jmorris@xxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx> |
| In-reply-to: | <200406091425.39324.vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Hello,
On Wed, 9 Jun 2004, Denis Vlasenko wrote:
> 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.
>
> I was bitten by this with DNS and NTP.
The problem is in the apps. You have some options:
- use sockets listening on ANY and using sendmsg with IP_PKTINFO
and providing the desired src IP in ipi_spec_dst
- you can also create many listener sockets listening on
particular src IP and to reply using the socket where the
request is received, because the kernel does not know any
association between request and reply packets if the listener
is bound to ANY.
Regards
--
Julian Anastasov <ja@xxxxxx>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | UDP sockets bound to ANY send answers with wrong src ip address, Denis Vlasenko |
|---|---|
| Next by Date: | Re: UDP sockets bound to ANY send answers with wrong src ip address, YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | UDP sockets bound to ANY send answers with wrong src ip address, Denis Vlasenko |
| Next by Thread: | Re: UDP sockets bound to ANY send answers with wrong src ip address, Denis Vlasenko |
| Indexes: | [Date] [Thread] [Top] [All Lists] |