make the ipv4 subnet matching code work like the ipv6 code, fixes bug in subnet matching on tun interfaces