Extract 'struct net' (for net namespaces).