summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1e0a316)
Docs ( https://www.nongnu.org/lwip/2_0_x/group__udp__raw.html ) say
"ipaddr & port are expected to be in the same byte order as in the pcb,"
which apparently means _don't_ run it through htons().
if (ip4addr_aton(tattle_server_ip_address, &ipaddr) == 0)
signal_error_by_blinking();
if (ip4addr_aton(tattle_server_ip_address, &ipaddr) == 0)
signal_error_by_blinking();
- if (udp_connect(the_pcb, &ipaddr, htons(tattle_port)) != ERR_OK)
+ if (udp_connect(the_pcb, &ipaddr, tattle_port) != ERR_OK)
signal_error_by_blinking();
}
signal_error_by_blinking();
}