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 ?

If the packets going out each nic were only going to one IP address
(such as a next hop router), you could use setsockopt(IP_NEXTHOP).
See:
http://docs.sun.com/app/docs/doc/816-5177/6mbbc4g74?a=view
for more details.

Darren

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to