mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
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:
parent
b85fa1d069
commit
cdd05ad71b
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user