[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: |
Tue, 6 Nov 2007 14:26:42 +0100 |
>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.
Be careful, if you use sockets API layer, you don't have to use the socket
value for udp_send (the raw API layer). You should use lwip_send/lwip_sendto
(or send/sendto).
>how to use socket to get a valid return value,since the return value is zero
>for opening socket
But 0 is a valid value for lwip_socket/socket!!! (>=0)
>kindly suggest a option to get a valid return value for socket with out using
>eternet (using only serial port)
You don't have answer to these questions: "...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?...".
If you use the CVS head, you could set in your lwipopts.h:
PPP_SUPPORT=1
PPPOE_SUPPORT=0
PPPOS_SUPPORT=1
It SHOULD work (but since I don't use PPP, I can't confirm you). Note that
previous pppOpen call is now replace by pppOverSerialOpen (sample in unix port
is broken).
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de ramash
Envoyé : mardi 6 novembre 2007 13:21
À : address@hidden
Objet : Re: [lwip-users] PPP
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.
_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users
Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf
- RE : [lwip-users] PPP,
Frédéric BERNON <=