Resynchronise with upstream libutp.c, commit 4be31bb7.

This commit is contained in:
Juliusz Chroboczek 2011-07-25 19:27:17 +00:00
parent 434a988165
commit 8018973257
2 changed files with 8 additions and 1 deletions

View File

@ -45,6 +45,13 @@ from libutp:
cd utp_test && make
## Packaging and API
The libutp API is considered unstable, and probably always will be. We encourage
you to test with the version of libutp you have, and be mindful when upgrading.
For this reason, it is probably also a good idea to bundle libutp with your
application.
## License
libutp is released under the [MIT][lic] license.

View File

@ -120,7 +120,7 @@ struct PACKED_ATTRIBUTE PackedSockAddr {
byte get_family() const
{
return (IN6_IS_ADDR_V4MAPPED((in6_addr*)_sin6) != 0) ? AF_INET : AF_INET6;
return (IN6_IS_ADDR_V4MAPPED(&_in._in6addr) != 0) ? AF_INET : AF_INET6;
}
bool operator==(const PackedSockAddr& rhs) const