Closed GoogleCodeExporter closed 8 years ago
解决办法我认为应该是在验证失败后的延迟时间段内停止抓��
�或者忽略所有数据包
Original comment by q741...@gmail.com
on 27 Aug 2011 at 5:51
else if (buf[0x0F]==0x00 && buf[0x12]==0x04) { /* 认证失败或被踢下线 */
if (state==ID_WAITECHO || state==ID_ECHO) {
printf(_(">> 认证掉线,开始重连!\n"));
switchState(ID_START);
}
else if (buf[0x1b]!=0 || startMode%3==2) {
printf(_(">> 认证失败!\n"));
if (startMode%3 != 2)
showRuijieMsg(buf, h->caplen);
if (maxFail && ++failCount>=maxFail) {
printf(_(">> 连续认证失败%u次,退出认证。\n"), maxFail);
exit(EXIT_SUCCESS);
}
restart();
}
else
switchState(ID_START);
}
目前的设计是失败包里面存在提示消息(buf[0x1b]!=0)才++failCo
unt,可以试试把这个条件删除
Original comment by www.eh...@gmail.com
on 28 Aug 2011 at 9:52
Original issue reported on code.google.com by
q741...@gmail.com
on 27 Aug 2011 at 5:50