Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Achou.Wang
accel-ppp
提交
1819d99a
A
accel-ppp
项目概览
Achou.Wang
/
accel-ppp
通知
6
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
accel-ppp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1819d99a
编写于
10月 23, 2014
作者:
D
Dmitry Kozlov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
radius: fixed stuck during shutdown when radius server does not respond
上级
90125d7c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
16 deletion
+23
-16
accel-pppd/accel-ppp.conf
accel-pppd/accel-ppp.conf
+1
-1
accel-pppd/accel-ppp.conf.5
accel-pppd/accel-ppp.conf.5
+4
-1
accel-pppd/radius/acct.c
accel-pppd/radius/acct.c
+10
-8
accel-pppd/radius/req.c
accel-pppd/radius/req.c
+8
-6
未找到文件。
accel-pppd/accel-ppp.conf
浏览文件 @
1819d99a
...
...
@@ -144,7 +144,7 @@ interface=eth0
nas
-
identifier
=
accel
-
ppp
nas
-
ip
-
address
=
127
.
0
.
0
.
1
gw
-
ip
-
address
=
192
.
168
.
100
.
1
server
=
127
.
0
.
0
.
1
,
testing123
,
auth
-
port
=
1812
,
acct
-
port
=
1813
,
req
-
limit
=
0
,
fail
-
time
=
0
,
weight
=
1
server
=
127
.
0
.
0
.
1
,
testing123
,
auth
-
port
=
1812
,
acct
-
port
=
1813
,
req
-
limit
=
50
,
fail
-
timeout
=
0
,
max
-
fail
=
1
0
,
weight
=
1
dae
-
server
=
127
.
0
.
0
.
1
:
3799
,
testing123
verbose
=
1
#timeout=3
...
...
accel-pppd/accel-ppp.conf.5
浏览文件 @
1819d99a
...
...
@@ -596,7 +596,7 @@ Specifies IP address, port and secret of authentication RADIUS server. (obsolete
.BI "acct-server=" x.x.x.x:port,secret
Specifies IP address, port and secret of accounting RADIUS server. (obsolete)
.TP
.BI "server=" address,secret[,auth-port=1812][,acct-port=1813][,req-limit=0][,fail-time
=0
][,weight=1][,backup]
.BI "server=" address,secret[,auth-port=1812][,acct-port=1813][,req-limit=0][,fail-time
out=0,max-fail=0,
][,weight=1][,backup]
Specifies IP address, secret, ports of RADIUS server.
.br
.B req-limit
...
...
@@ -605,6 +605,9 @@ Specifies IP address, secret, ports of RADIUS server.
.B fail-time
- if server doesn't responds mark it as unavailable for this time (sec).
.br
.B max-fail
- number of unreplied requests in a row after that mark server as unavailable.
.br
.B weight
- specifies weight of server for multi-server configuration.
.br
...
...
accel-pppd/radius/acct.c
浏览文件 @
1819d99a
...
...
@@ -303,15 +303,15 @@ out_err:
static
void
rad_acct_stop_sent
(
struct
rad_req_t
*
req
,
int
res
)
{
if
(
res
)
{
if
(
req
->
rpd
)
if
(
ap_shutdown
)
{
struct
radius_pd_t
*
rpd
=
req
->
rpd
;
rad_req_free
(
req
);
if
(
rpd
)
rpd
->
acct_req
=
NULL
;
}
else
if
(
req
->
rpd
)
rad_acct_stop_defer
(
req
->
rpd
);
else
{
if
(
ap_shutdown
)
{
rad_req_free
(
req
);
req
->
rpd
->
acct_req
=
NULL
;
}
else
req
->
try
=
0
;
}
return
;
}
...
...
@@ -348,6 +348,8 @@ static void rad_acct_stop_timeout(struct triton_timer_t *t)
{
struct
rad_req_t
*
req
=
container_of
(
t
,
typeof
(
*
req
),
timeout
);
log_debug
(
"timeout %p
\n
"
,
req
);
if
(
!
req
->
rpd
)
log_switch
(
triton_context_self
(),
NULL
);
...
...
accel-pppd/radius/req.c
浏览文件 @
1819d99a
...
...
@@ -353,12 +353,14 @@ int rad_req_send(struct rad_req_t *req)
req
->
send
=
__rad_req_send
;
if
(
req
->
try
++
==
conf_max_try
)
{
rad_server_req_exit
(
req
);
if
(
rad_server_realloc
(
req
))
{
if
(
req
->
rpd
)
log_ppp_warn
(
"radius: no available servers
\n
"
);
return
-
1
;
if
(
req
->
active
)
{
rad_server_req_exit
(
req
);
if
(
rad_server_realloc
(
req
))
{
if
(
req
->
rpd
)
log_ppp_warn
(
"radius: no available servers
\n
"
);
return
-
1
;
}
}
req
->
try
=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录