[uClinux-dev] retriving a dhcp assigned gateway

Matthew Natalier matthewn at snapgear.com
Mon Mar 24 17:07:42 EST 2003


Hi Massimiliano,

Try having a look at the route source code.  If you have a uClinuxdist
it lives in user/route.

It looks like it looks it parses /proc/net/route.  Particularly look at
lib/inet_gr.c.

Cheers

Matt

Massimiliano Cialdi wrote:
> How can I retrive the gateways ip address assigned to my host by a dhcp
> server? 
> I use dhcpcd-new, and I think I need an ioctl call with SIOCG*.
> 
> 
> thanks
> 
> 
> -- 
> Massimiliano Cialdi
> cialdi at firenze.net
> m.cialdi at oksys.it
> cialdi at control.dsi.unifi.it
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org

-- 
Matthew Natalier
Systems Programmer
p: +61 7 3435 2805
f: +61 7 3891 3630
matthewn at SnapGear.com
http://www.SnapGear.com/
--
SnapGear
Custom Embedded Solutions
Security Appliances




More information about the uClinux-dev mailing list