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

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

 



On Fri, 11 Jun 2004, Denis Vlasenko wrote:

> The problem is, how to _send replies_ with correct src ip?

By using IP_PKTINFO in a sendmsg() call. See ip(7) for details.

You can also use this in recvmsg if you prefer only one extra address 
structure type in sending/receiving messages and less complex code..

Regards
Henrik

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux