[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] PPP
From: |
Frédéric BERNON |
Subject: |
Re: [lwip-users] PPP |
Date: |
Sat, 3 Nov 2007 14:30:05 +0100 |
Dear All,
Our project team is trying to send data using point to point
protocol,We
are using PPP 2.4 version with LWIP.We are able to establish a PPP link
and
got IP address from ISP using our own drivers.After this we have the
following issues.
To be sure to understand, do you use the ppp stack provided with lwIP
sources, or your own one? What lwIP release do you use?
1.We are unable to pass the IP packets ,since there are more files such
as
tcp.c,ip.c,tcpip.c,udp.c..etc.Through which file we have to send data that
is IP packets.
I will suppose you have implement your own PPP. So, if you use sockets API,
you should send them to the tcpip_input function (sockets API and netconn
API use the same entry point)
2.We decided to use sockets to send packets,but it does not returns a
socket
id like windows socket API.
lwip_socket/socket return an "int", this one is valid is it's >=0. Windows
socket API return a SOCKET type, which is also an "int"
3.we are confused to decide a code flow to send tcp/ip packets. also in
a
file called ip.c the function ip_init is empty but defined, a comment is
mentioned inside the function "/* no initializations as of yet */".
kindly reply us to find a correct path.
The CVS head is now more simple for init. The best if you know Windows is to
look the lwip/contrib/ports/msvc6 port which is updated for initialization
parts.
Once initialized, you can use sockets API like on any systems.
You can also found some informations on :
http://lwip.scribblewiki.com/LwIP_Main_Page
--
View this message in context:
http://www.nabble.com/PPP-tf4741948.html#a13560146
Sent from the lwip-users mailing list archive at Nabble.com.
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users