Minor cleanup

Change prefix to lanname parameter to match convention

Fix corner condition on acceptance logic