mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: vda@port.imtp.ilyichevsk.odessa.ua (Denis Vlasenko)
Cc: yoshfuji@linux-ipv6.org, netdev@oss.sgi.com,
	linux-net@vger.kernel.org, davem@redhat.com, pekkas@netcore.fi,
	jmorris@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: UDP sockets bound to ANY send answers with wrong src ip address
Date: Fri, 11 Jun 2004 20:34:18 +1000	[thread overview]
Message-ID: <E1BYjMY-0002CE-00@gondolin.me.apana.org.au> (raw)
In-Reply-To: <200406111230.35481.vda@port.imtp.ilyichevsk.odessa.ua>

Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> wrote:
> 
> I looked into sendmsg(). Looks like ther is no way to
> indicate source ip.
> 
> Shall I use some other technique?

IP_PKTINFO works just as well there.  Look at the ip_cmsg_send call
in udp_sendmsg.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

  reply	other threads:[~2004-06-11 10:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09 11:25 Denis Vlasenko
2004-06-09 12:18 ` Julian Anastasov
2004-06-09 12:45   ` Denis Vlasenko
2004-06-09 12:20 ` Martijn van Oosterhout
2004-06-09 12:24 ` YOSHIFUJI Hideaki / 吉藤英明
2004-06-11  9:30   ` Denis Vlasenko
2004-06-11 10:34     ` Herbert Xu [this message]
2004-06-11 12:27       ` Denis Vlasenko
2004-06-11 13:53         ` Julian Anastasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1BYjMY-0002CE-00@gondolin.me.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=davem@redhat.com \
    --cc=jmorris@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=pekkas@netcore.fi \
    --cc=vda@port.imtp.ilyichevsk.odessa.ua \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®