determining ipv4 or ipv6 net in filter