Results 1 to 1 of 1
I am trying to write code in C to get and set the default route or gateway address on a specific piece of hardware. I have tried many different things, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-18-2006 #1Just Joined!
- Join Date
- Sep 2006
- Posts
- 1
How programatically in C do I get/set the default route or gateway address of eth0
I am trying to write code in C to get and set the default route or gateway address on a specific piece of hardware. I have tried many different things, but nothing seems to work. The closest way that looks close to me is using RTNetlink, however I'm not sure if that even works. When I use RTNetlink, I get a gateway address to return, however it is always 0.0.0.0. Any help would be great.


Reply With Quote
