Replace hardcoded value with MAX_NETDEVICES