lxip/udp_client: use dynamic port as source port

Instead of a registered port as this leads to conflicts with common IP stacks.

Ref #2139
This commit is contained in:
Martin Stein 2016-09-14 16:39:33 +02:00 committed by Christian Helmuth
parent b85fa1d069
commit cdd05ad71b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ int main(void)
log("Now, I will bind ...");
struct sockaddr_in in_addr;
in_addr.sin_family = AF_INET;
in_addr.sin_port = htons(8765);
in_addr.sin_port = htons(49252);
in_addr.sin_addr.s_addr = INADDR_ANY;
if(bind(s, (struct sockaddr*)&in_addr, sizeof(in_addr))) {
error("bind failed!");