SAMENET
if (!SAMENET(myip, rootip, netmask)) {
if (!SAMENET(myip, gateip, netmask)) {
netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask))