If you want to use this for sending UDP or ICMP packets you can use IP_PKTINFO socket option. However IP_PKTINFO is only available in onnv.

Rao.


mark ryden wrote:
Hello,

I want to be able write a user space little app which will send packets through a specified interface on a machine with 2 nics(or more). Each nic has a different IP address , but they are on the same network (same netmask).

Is there something which does what "SO_BINDTODEVICE" in linux does ? (as a
setsockopt parameter).
I tried and could not find something like that.

can I do it at all in solaris ?

Regards,
Mark
This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to