-   Linux - Software (
-   -   Traffi forcing on a specific interface (

kbassyouny 07-04-2003 05:53 AM

Traffi forcing on a specific interface
Hi everyBody .. I am building my own "ping" program I did almost everything ..but there is this one option i don't know how to do .
I want to force the packets to go through a specific ethernet interface without consulting the rounting table i.e If the Rounting table says that network should be reached through eth0 ., I want to force My packets to go through eth1.

I know this is feasible cause you can do it from the usual ping command :
"ping -I eth1"

I read a lot about socket programming and till now didn't find a solution

Thanks alot guys

All times are GMT -5. The time now is 08:40 PM.