lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] "netconn_bind" broken for UDP connections in LwIP 1.4.0?


From: Marco Jakobs
Subject: [lwip-users] "netconn_bind" broken for UDP connections in LwIP 1.4.0?
Date: Wed, 02 May 2012 17:45:55 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

Hi,

i have some UDP transmissions where i need to definitely set the source port (my transmission port) to a given value!

I did this always with:

            dvtxcon=netconn_new(NETCONN_UDP);    // New connection
modsrv_addr.addr=htonl(msgqueue[msgq1-1].adr); // Prepare target IP address netconn_connect(dvtxcon,&modsrv_addr,msgqueue[msgq1-1].port); // Open Connection netconn_bind( dvtxcon, NULL, kreg[602] ); // Set source port to configured value

After upgrading to LwIP 1.4.0, i saw some connections not working, and my wireshark showed me that the source port setting is not working anymore! :-( The connections are sourcing from port 49152 instead of the configured port 3141.

Is this a bug, or did some interfacing change in LwIP 1.4.0? How can i set the source port of the connection?

Thanks,
Marco



reply via email to

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