ipInPrefixes subroutine checks ip in prefix list