[En-Nut-Discussion] gateway parameter addition to NutNetIfConfig()
Damian Slee
damian at commtech.com.au
Thu Sep 18 05:39:25 CEST 2003
Hi,
can I have the gateway param added to NutNetIfConfig() and used in NutDhcpIfConfig() so manual configuration can be used. please?
ifconfig.c
int NutNetIfConfig(CONST char *name, void *params, u_long ip_addr, u_long ip_mask)
{
..
return NutNetIfSetup(dev, ip_addr, ip_mask, 0);
to
int NutNetIfConfig(CONST char *name, void *params, u_long ip_addr, u_long ip_mask, u_long gateway)
{
..
return NutNetIfSetup(dev, ip_addr, ip_mask, gateway);
and in dhcpc.c
int NutDhcpIfConfig(CONST char *name, u_char *mac, u_long timeout)
{
...
return NutNetIfConfig(name, confnet.cdn_mac, confnet.cdn_ip_addr, confnet.cdn_ip_mask, confnet.cdn_gateway);
More information about the En-Nut-Discussion
mailing list