Skip to content

Commit

Permalink
修复心跳问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjies committed Jul 27, 2020
1 parent 6654ac3 commit 806cdfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 前言
针对肇庆学院锐捷认证修改的minieap
针对肇庆学院锐捷认证修改的minieap,修复心跳问题
#### 以下是使用示例,
```
minieap -u 用户名 -p 密码 -n 网卡名 -b 0 --module rjv3 -e 20 -d 1 -c "dhclient" --version-str "RG-SU For Linux V1.30"
Expand Down
3 changes: 2 additions & 1 deletion packet_plugin/rjv3/packet_plugin_rjv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ static RESULT rjv3_process_success(struct _packet_plugin* this, ETH_EAP_FRAME* f
}

PR_INFO("正定时发送 Keep-Alive 报文以保持在线……");
schedule_alarm(1, rjv3_send_keepalive_timed, this);
//schedule_alarm(1, rjv3_send_keepalive_timed, this);
rjv3_send_keepalive_timed(this);
return SUCCESS;
}

Expand Down
3 changes: 2 additions & 1 deletion packet_plugin/rjv3/packet_plugin_rjv3_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ void rjv3_start_secondary_auth(void* vthis) {
if (PRIV->dhcp_count > PRIV->max_dhcp_count) {
rjv3_process_result_prop(PRIV->last_recv_packet); // Loads of texts
free_frame(&PRIV->last_recv_packet); // Duplicated in process_success
schedule_alarm(1, rjv3_send_keepalive_timed, this);
//schedule_alarm(1, rjv3_send_keepalive_timed, this);
rjv3_send_keepalive_timed(this);
PR_ERR("无法获取 IPv4 地址等信息,将不会进行第二次认证而直接开始心跳");
} else {
PR_WARN("DHCP 可能尚未完成,将继续等待……");
Expand Down

0 comments on commit 806cdfd

Please sign in to comment.