Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Achou.Wang
accel-ppp
提交
c9e6b5f6
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 搜索 >>
提交
c9e6b5f6
编写于
10月 05, 2010
作者:
K
Kozlov Dmitry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pptp: fixed bug of incorrect administrative termination
上级
fd0c4204
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
17 addition
and
12 deletion
+17
-12
accel-pptpd/accel-pptpd.conf
accel-pptpd/accel-pptpd.conf
+1
-1
accel-pptpd/ctrl/pptp.c
accel-pptpd/ctrl/pptp.c
+16
-11
未找到文件。
accel-pptpd/accel-pptpd.conf
浏览文件 @
c9e6b5f6
...
...
@@ -55,7 +55,7 @@ gw-ip-address=192.168.100.1
[
log
]
log
-
file
=
general
.
log
log
-
emerg
=/
dev
/
stderr
log
-
debug
=
/
dev
/
stdout
log
-
debug
=
debug
.
log
copy
=
1
#color=1
#per-user-dir=per_user
...
...
accel-pptpd/ctrl/pptp.c
浏览文件 @
c9e6b5f6
...
...
@@ -330,7 +330,7 @@ static int pptp_out_call_rqst(struct pptp_conn_t *conn)
return
0
;
}
static
int
send_pptp_call_
clear
_notify
(
struct
pptp_conn_t
*
conn
,
int
result
)
static
int
send_pptp_call_
disconnect
_notify
(
struct
pptp_conn_t
*
conn
,
int
result
)
{
struct
pptp_call_clear_ntfy
msg
=
{
.
header
=
PPTP_HEADER_CTRL
(
PPTP_CALL_CLEAR_NTFY
),
...
...
@@ -341,7 +341,7 @@ static int send_pptp_call_clear_notify(struct pptp_conn_t *conn, int result)
};
if
(
conf_verbose
)
log_ppp_info
(
"send [PPTP Call-
Clear
-Notify <Call-ID %x> <Result %i> <Error %i> <Cause %i>]
\n
"
,
ntohs
(
msg
.
call_id
),
msg
.
result_code
,
msg
.
error_code
,
msg
.
cause_code
);
log_ppp_info
(
"send [PPTP Call-
Disconnect
-Notify <Call-ID %x> <Result %i> <Error %i> <Cause %i>]
\n
"
,
ntohs
(
msg
.
call_id
),
msg
.
result_code
,
msg
.
error_code
,
msg
.
cause_code
);
return
post_msg
(
conn
,
&
msg
,
sizeof
(
msg
));
}
...
...
@@ -358,7 +358,7 @@ static int pptp_call_clear_rqst(struct pptp_conn_t *conn)
ppp_terminate
(
&
conn
->
ppp
,
1
);
}
return
send_pptp_call_
clear
_notify
(
conn
,
4
);
return
send_pptp_call_
disconnect
_notify
(
conn
,
4
);
}
static
int
pptp_echo_rqst
(
struct
pptp_conn_t
*
conn
)
...
...
@@ -531,17 +531,22 @@ static void pptp_close(struct triton_context_t *ctx)
struct
pptp_conn_t
*
conn
=
container_of
(
ctx
,
typeof
(
*
conn
),
ctx
);
if
(
conn
->
state
==
STATE_PPP
)
{
conn
->
state
=
STATE_CLOSE
;
ppp_terminate
(
&
conn
->
ppp
,
0
);
ppp_terminate
(
&
conn
->
ppp
,
1
);
if
(
send_pptp_call_disconnect_notify
(
conn
,
3
))
{
triton_context_call
(
&
conn
->
ctx
,
(
void
(
*
)(
void
*
))
disconnect
,
conn
);
return
;
}
}
else
{
if
(
send_pptp_stop_ctrl_conn_rqst
(
conn
,
0
))
if
(
send_pptp_stop_ctrl_conn_rqst
(
conn
,
0
))
{
triton_context_call
(
&
conn
->
ctx
,
(
void
(
*
)(
void
*
))
disconnect
,
conn
);
else
{
return
;
}
}
if
(
conn
->
timeout_timer
.
tpd
)
triton_timer_mod
(
&
conn
->
timeout_timer
,
0
);
else
triton_timer_add
(
ctx
,
&
conn
->
timeout_timer
,
0
);
}
}
}
static
void
ppp_started
(
struct
ppp_t
*
ppp
)
{
...
...
@@ -555,7 +560,7 @@ static void ppp_finished(struct ppp_t *ppp)
log_ppp_debug
(
"ppp_finished
\n
"
);
conn
->
state
=
STATE_CLOSE
;
if
(
send_pptp_call_
clear
_notify
(
conn
,
3
))
if
(
send_pptp_call_
disconnect
_notify
(
conn
,
3
))
triton_context_call
(
&
conn
->
ctx
,
(
void
(
*
)(
void
*
))
disconnect
,
conn
);
else
if
(
send_pptp_stop_ctrl_conn_rqst
(
conn
,
0
))
triton_context_call
(
&
conn
->
ctx
,
(
void
(
*
)(
void
*
))
disconnect
,
conn
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录