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