mizucp: implement scan thread