[En-Nut-Discussion] PPP IPCP problem

Mike Cornelius mikec at calldirect.com.au
Wed Mar 12 23:48:22 CET 2003


Ah yes, good point, this really should be :-

 	if((dev = NutDeviceLookup("PPP0")) != 0)
 	{
 		//Setup DNS
 		ifn = dev->dev_icb;
 		NutDnsConfig(0, 0, ifn->if_pdns);
	}
Mike

-----Original Message-----
From: en-nut-discussion-admin at egnite.de
[mailto:en-nut-discussion-admin at egnite.de]On Behalf Of Tarmo Fimberg
Sent: Wednesday, March 12, 2003 8:00 PM
To: en-nut-discussion at egnite.de
Subject: Re: [En-Nut-Discussion] PPP IPCP problem



Hi Mike!

Isn't it in contradiction with Ethernut API:
"int NutRegisterDevice
( NUTDEVICE * dev, u_short  base, u_char   irq)
Register a device.
Initializes the device and adds it to the system device list. Applications
should call this function during initialization for each device they intend
to use. Once registered, stream devices must be accessed by calling
NutDeviceOpen() first. However, network devices should not be opened but
configured by calling NutNetIfConfig() or NutNetAutoConfig()."

>
> 	if((dev = NutDeviceOpen("PPP0")) != 0)
> 	{
> 		//Setup DNS
> 		ifn = dev->dev_icb;
> 		NutDnsConfig(0, 0, ifn->if_pdns);
> 	}

Best regards,
Tarmo Fimberg
<tarmo_at_kaugotsing_dot_ee>

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list