--- libelwix/src/net.c 2018/03/15 14:49:56 1.17.10.1 +++ libelwix/src/net.c 2018/04/04 01:22:15 1.18.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: net.c,v 1.17.10.1 2018/03/15 14:49:56 misho Exp $ +* $Id: net.c,v 1.18.2.1 2018/04/04 01:22:15 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -498,8 +498,8 @@ e_innet(netaddr_t * __restrict net, inaddr_t * __restr case AF_INET: for (i = 0; i < sizeof(struct in_addr); i++) { ret = ((caddr_t) &net->addr.sin.sin_addr.s_addr)[i] & - net->mask.in.s4_addr[i]; - ret -= addr->in.s4_addr[i] & net->mask.in.s4_addr[i]; + net->mask.in4.s4_addr[i]; + ret -= addr->in4.s4_addr[i] & net->mask.in4.s4_addr[i]; if (ret) break; }