savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[savannah-help-public] lwIP and getpeername() function


From: Cristóvão Rufino
Subject: [savannah-help-public] lwIP and getpeername() function
Date: Wed, 29 May 2013 09:40:10 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

Hello, everyone!

I'm using lwIP in a project together with CyaSSL DTLS (Datagram TLS - it's an UPD connection) capabilities. I'm having a problem/issue with the function 'getpeername()' of lwIP.

CyaSSL has a function that calls lwIP's getpeername() to retreive information about the peer connection (IP address and connection port). After some debugging, I noticed that after the call to 'getpeername()' the port is correctly returned but the IP address is read zero.

The problem/issue is that without this IP address I cannot finish the handshake necessary for CyaSSL to work correctly.

I need to know how I can fix this problem/issue ASAP (I'm in a tight schedule here...).

By the way: I'm using lwIP version 1.5.0-git-2012124 (because I need also IPv6 in this project. By the way, this DTLS connection is intended to run over IPv6 but I noticed that 'getaddrinfo()' does not work with IPv6 yet).

--
Cristóvão Zuppardo Rufino
Software and Firmware development specialist - FITec (Recife/Brazil)
Computer Engineer
MSc. Candidade in Systems engineering




reply via email to

[Prev in Thread] Current Thread [Next in Thread]