tech-net archive

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

Re: binding a socket to a specific interface



On 20/06/2018 21:33, Edgar Fuß wrote:
filter out packets from the "wrong" interface at the application level.
But I need to /send/ from a particular interface!


See ip(4) which describes a CMSG instruction called IP_PKTINFO where you can set ipi_ifindex to the index of the outbound interface.

Roy


Home | Main Index | Thread Index | Old Index