[En-Nut-Discussion] PPP IPCP problem

Mike Cornelius mikec at calldirect.com.au
Tue Mar 11 23:29:36 CET 2003


Thanks for that Tarmo.

gethostbyname() is really a temporary thing that I put together in a hurry.

I've now tested the "propper" Nut/OS version and this works just fine.
Here's a code snippet of how to start PPP and initialise the Nut/OS
resolver: -

PPP_PARAMS	ppp_params;

ppp_params.ppp_host_dev = uart1;
ppp_params.ppp_user = "fred";
ppp_params.ppp_pass = "frog";
if (CDNetPPPConnect(vc_gprs, confgprs->setup_string, 5000) != -1)
{
	if (NutNetIfConfig("PPP0",&ppp_params, 0,0))
	{
		DisconnectCall(uart1);
		NutSleep(5000);
	}

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

Regards,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Cornelius                      Internet: mikec at calldirect.com.au
Call Direct Cellular Solutions      Phone:    +61 2 99-65-75-85
Level 1 8-22 West St North Sydney   FAX:      +61 2 99-65-75-90
NSW 2060 Australia                  URL:      http://www.calldirect.com.au
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----Original Message-----
From: tarmo [mailto:tarmo at kaugotsing.ee]
Sent: Tuesday, March 11, 2003 11:11 PM
To: Mike Cornelius
Subject: Re: [En-Nut-Discussion] PPP IPCP problem



Hi Mike!

I finally got PPP working with Nut/OS v3.0.1 and my ISP
I send my .diff files to You
My be someone else is interested...

The major modifications for me were:
1. LCP - need asking IP twice (remote & local)
2. ACCM handling - must use ACCM even after AUTH_UP keeping all < 0x20h
escaped or implement some real escaping based on negotiated asy_map
3. Rejecting CHAP authentication to get PAP
4. Using ACFC (there is still no PFC in my modifications)

Also gethostbyname() in CDCS_Inet.c does not working with answers longer
than
128 bytes as obvious from source code.

Thank You for help!





More information about the En-Nut-Discussion mailing list