New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gen 3] Some LwIP optimizations #1610

Merged
merged 3 commits into from Nov 28, 2018
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+2 −1
Diff settings

Always

Just for now

Prev

[wiring] IPAddress -> sockaddr_in endianness woes

  • Loading branch information...
avtolstoy committed Nov 28, 2018
commit 110b4bf6ae5976a3edd312211baee92908a7f766
@@ -67,7 +67,8 @@ inline void ipAddressPortToSockaddr(const IPAddress& addr, uint16_t port, struct
inaddr->sin_family = AF_INET;
inaddr->sin_port = htons(port);
const auto& a = addr.raw();
inaddr->sin_addr.s_addr = a.ipv4;
// NOTE: HAL_IPAddress.ipv4 is host-order :|
inaddr->sin_addr.s_addr = htonl(a.ipv4);
}
#endif // HAL_IPv6
}
ProTip! Use n and p to navigate between commits in a pull request.