[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] PPP
From: |
ramash |
Subject: |
Re: [lwip-users] PPP |
Date: |
Tue, 6 Nov 2007 04:20:59 -0800 (PST) |
Thanks for your reply,we are able to send udp packets but unable to get the
value for sockets and how to pass the socket value inside the udp_send to
function.
1. how to use socket to get a valid return value,since the return value is
zero for opening socket.kindly suggest a option to get a valid return value
for socket with out using eternet (using only serial port)
regards
ramash
Frédéric BERNON-2 wrote:
>
>> 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
>>
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
--
View this message in context: http://www.nabble.com/PPP-tf4741948.html#a13605559
Sent from the lwip-users mailing list archive at Nabble.com.