|
From: | Marco Jakobs |
Subject: | Re: [lwip-users] Setting source port number for UDP send |
Date: | Fri, 11 Dec 2009 08:08:03 +0100 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Thanks for your thoughts, David! I figured it out how to set a defined source port (in my case 69): Just insert this line to change the local port in the pcb: netconn_connect(tftptxcon,&modsrv_addr,ip_data_out.port); // Open connection tftptxcon->pcb.udp->local_port=69; // Set local (source) port tftpsrvbuf=netbuf_new(); // Create netbuf ..... David Empson schrieb:
|
[Prev in Thread] | Current Thread | [Next in Thread] |