Hi
Here's my problem. I want all my packages to be routed through a dial-up network interface, not through the default ethernet interface. The problem is, I cannot set a persistent route, since the dial-up connection gets a new interface name every time.
So I need some way to list interfaces on the system, find the dial-up interface, and add a route to the ip routing table (route add x.x.x.x mask 255.255.255.255 y.y.y.y if [ifname]), all with the use of the win api. (I really don't want to hack this).
Anybody got any ideas?
Thanks for your time!
Here's my problem. I want all my packages to be routed through a dial-up network interface, not through the default ethernet interface. The problem is, I cannot set a persistent route, since the dial-up connection gets a new interface name every time.
So I need some way to list interfaces on the system, find the dial-up interface, and add a route to the ip routing table (route add x.x.x.x mask 255.255.255.255 y.y.y.y if [ifname]), all with the use of the win api. (I really don't want to hack this).
Anybody got any ideas?
Thanks for your time!