From: Guillaume Subiron
This patch makes solookup() compatible with varying address
families, by using a new sockaddr_equal() function that compares
two sockaddr_storage.
This prepares for IPv6 support.
Signed-off-by: Guillaume Subiron
Signed-off-by: Samuel Thibault
Reviewed-by: Thomas Huth
Thomas Huth, on Mon 14 Dec 2015 21:17:19 +0100, wrote:
> > + lhost.ss_family = AF_INET;
> > + ((struct sockaddr_in *)&lhost)->sin_addr = ti->ti_src;
> > + ((struct sockaddr_in *)&lhost)->sin_port = ti->ti_sport;
> > + fhost.ss_family = AF_INET;
> > + ((struct sockaddr_in *)&fhost)->sin_ad
On 14/12/15 14:51, Samuel Thibault wrote:
> From: Guillaume Subiron
>
> This patch makes solookup() compatible with varying address
> families, by using a new sockaddr_equal() function that compares
> two sockaddr_storage.
>
> This prepares for IPv6 support.
>
> Signed-off-by: Guillaume Subiron
From: Guillaume Subiron
This patch makes solookup() compatible with varying address
families, by using a new sockaddr_equal() function that compares
two sockaddr_storage.
This prepares for IPv6 support.
Signed-off-by: Guillaume Subiron
Signed-off-by: Samuel Thibault
---
slirp/socket.c| 2