[openbeosnetteam] Re: PPP, nameservers, DHCP, up/down reports

> To set interface IP address, both BONE and our stack use ifconfig 
> command line tool.
> To see how ifconfig ask the stack to bind a particular IP address to an 
> interface, look at current/src/apps/bin/ifconfig/*.

Thank you.

> Yes, it's code jungle. But, shortly put, you open a socket of AF_INET 
> family, 
> and then call ioctl() on it, passing SIOCAIFADDR and a ifreq struct 
> filled.
> Don't forget to fill the interface name ("tulip0" for example) you want 
> to setup. 
> ifreq struct is defined in current/headers/posix/net/if.h.

And how is the nameserver set?

Waldemar

Other related posts: