Fix up the gateway finding logic and exclude bad ARPs