[PATCH 1/2] network-functions.pl: fix network membership test