Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Achou.Wang
accel-ppp
提交
8a948ec1
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,发现更多精彩内容 >>
提交
8a948ec1
编写于
8月 16, 2011
作者:
K
Kozlov Dmitry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppp:ccp_mppe: don't touch kernel compressor when sending ConfNak
上级
edcb36b3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
3 deletion
+16
-3
accel-pppd/ppp/ccp_mppe.c
accel-pppd/ppp/ccp_mppe.c
+16
-3
未找到文件。
accel-pppd/ppp/ccp_mppe.c
浏览文件 @
8a948ec1
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
static
struct
ccp_option_t
*
mppe_init
(
struct
ppp_ccp_t
*
ccp
);
static
struct
ccp_option_t
*
mppe_init
(
struct
ppp_ccp_t
*
ccp
);
static
void
mppe_free
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
);
static
void
mppe_free
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
);
static
int
__mppe_send_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
,
int
setup_key
);
static
int
mppe_send_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_send_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_send_conf_nak
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_recv_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_recv_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_recv_conf_nak
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_recv_conf_nak
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_recv_conf_rej
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
static
int
mppe_recv_conf_rej
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
);
...
@@ -44,7 +46,7 @@ struct mppe_option_t
...
@@ -44,7 +46,7 @@ struct mppe_option_t
static
struct
ccp_option_handler_t
mppe_opt_hnd
=
{
static
struct
ccp_option_handler_t
mppe_opt_hnd
=
{
.
init
=
mppe_init
,
.
init
=
mppe_init
,
.
send_conf_req
=
mppe_send_conf_req
,
.
send_conf_req
=
mppe_send_conf_req
,
.
send_conf_nak
=
mppe_send_conf_
req
,
.
send_conf_nak
=
mppe_send_conf_
nak
,
.
recv_conf_req
=
mppe_recv_conf_req
,
.
recv_conf_req
=
mppe_recv_conf_req
,
.
recv_conf_nak
=
mppe_recv_conf_nak
,
.
recv_conf_nak
=
mppe_recv_conf_nak
,
.
recv_conf_rej
=
mppe_recv_conf_rej
,
.
recv_conf_rej
=
mppe_recv_conf_rej
,
...
@@ -129,7 +131,7 @@ static int decrease_mtu(struct ppp_t *ppp)
...
@@ -129,7 +131,7 @@ static int decrease_mtu(struct ppp_t *ppp)
return
0
;
return
0
;
}
}
static
int
mppe_send_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
)
static
int
__mppe_send_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
,
int
setup_key
)
{
{
struct
mppe_option_t
*
mppe_opt
=
container_of
(
opt
,
typeof
(
*
mppe_opt
),
opt
);
struct
mppe_option_t
*
mppe_opt
=
container_of
(
opt
,
typeof
(
*
mppe_opt
),
opt
);
struct
ccp_opt32_t
*
opt32
=
(
struct
ccp_opt32_t
*
)
ptr
;
struct
ccp_opt32_t
*
opt32
=
(
struct
ccp_opt32_t
*
)
ptr
;
...
@@ -139,7 +141,7 @@ static int mppe_send_conf_req(struct ppp_ccp_t *ccp, struct ccp_option_t *opt, u
...
@@ -139,7 +141,7 @@ static int mppe_send_conf_req(struct ppp_ccp_t *ccp, struct ccp_option_t *opt, u
opt32
->
hdr
.
len
=
6
;
opt32
->
hdr
.
len
=
6
;
opt32
->
val
=
mppe_opt
->
mppe
?
htonl
(
MPPE_S
|
MPPE_H
)
:
0
;
opt32
->
val
=
mppe_opt
->
mppe
?
htonl
(
MPPE_S
|
MPPE_H
)
:
0
;
if
(
mppe_opt
->
mppe
&&
setup_mppe_key
(
ccp
->
ppp
->
unit_fd
,
0
,
mppe_opt
->
recv_key
))
if
(
setup_key
&&
mppe_opt
->
mppe
&&
setup_mppe_key
(
ccp
->
ppp
->
unit_fd
,
0
,
mppe_opt
->
recv_key
))
return
0
;
return
0
;
return
6
;
return
6
;
...
@@ -147,6 +149,17 @@ static int mppe_send_conf_req(struct ppp_ccp_t *ccp, struct ccp_option_t *opt, u
...
@@ -147,6 +149,17 @@ static int mppe_send_conf_req(struct ppp_ccp_t *ccp, struct ccp_option_t *opt, u
return
0
;
return
0
;
}
}
static
int
mppe_send_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
)
{
return
__mppe_send_conf_req
(
ccp
,
opt
,
ptr
,
1
);
}
static
int
mppe_send_conf_nak
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
)
{
return
__mppe_send_conf_req
(
ccp
,
opt
,
ptr
,
0
);
}
static
int
mppe_recv_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
)
static
int
mppe_recv_conf_req
(
struct
ppp_ccp_t
*
ccp
,
struct
ccp_option_t
*
opt
,
uint8_t
*
ptr
)
{
{
struct
mppe_option_t
*
mppe_opt
=
container_of
(
opt
,
typeof
(
*
mppe_opt
),
opt
);
struct
mppe_option_t
*
mppe_opt
=
container_of
(
opt
,
typeof
(
*
mppe_opt
),
opt
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录