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

From: Herbert Xu (herbert_at_gondor.apana.org.au)
Date: 06/11/04

  • Next message: Pekka J Enberg: "Re: ALSA: Remove subsystem-specific malloc (1/8)"
    To: vda@port.imtp.ilyichevsk.odessa.ua (Denis Vlasenko)
    Date:	Fri, 11 Jun 2004 20:34:18 +1000
    
    

    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
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Pekka J Enberg: "Re: ALSA: Remove subsystem-specific malloc (1/8)"

    Relevant Pages