network: implement masking of .link, .network and .netdev files