Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
6f2f19ed
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6f2f19ed
编写于
2月 27, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xfrm: Pass name as const to xfrm_*_get_byname().
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
5a698af5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
9 deletion
+9
-9
include/net/xfrm.h
include/net/xfrm.h
+4
-4
net/xfrm/xfrm_algo.c
net/xfrm/xfrm_algo.c
+4
-4
net/xfrm/xfrm_user.c
net/xfrm/xfrm_user.c
+1
-1
未找到文件。
include/net/xfrm.h
浏览文件 @
6f2f19ed
...
...
@@ -1513,10 +1513,10 @@ extern struct xfrm_algo_desc *xfrm_ealg_get_byidx(unsigned int idx);
extern
struct
xfrm_algo_desc
*
xfrm_aalg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_ealg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_calg_get_byid
(
int
alg_id
);
extern
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
char
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
char
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
char
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
char
*
name
,
int
icv_len
,
extern
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
c
onst
c
har
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
c
onst
c
har
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
c
onst
c
har
*
name
,
int
probe
);
extern
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
c
onst
c
har
*
name
,
int
icv_len
,
int
probe
);
struct
hash_desc
;
...
...
net/xfrm/xfrm_algo.c
浏览文件 @
6f2f19ed
...
...
@@ -618,21 +618,21 @@ static int xfrm_alg_name_match(const struct xfrm_algo_desc *entry,
(
entry
->
compat
&&
!
strcmp
(
name
,
entry
->
compat
)));
}
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
char
*
name
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_aalg_get_byname
(
c
onst
c
har
*
name
,
int
probe
)
{
return
xfrm_find_algo
(
&
xfrm_aalg_list
,
xfrm_alg_name_match
,
name
,
probe
);
}
EXPORT_SYMBOL_GPL
(
xfrm_aalg_get_byname
);
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
char
*
name
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_ealg_get_byname
(
c
onst
c
har
*
name
,
int
probe
)
{
return
xfrm_find_algo
(
&
xfrm_ealg_list
,
xfrm_alg_name_match
,
name
,
probe
);
}
EXPORT_SYMBOL_GPL
(
xfrm_ealg_get_byname
);
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
char
*
name
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_calg_get_byname
(
c
onst
c
har
*
name
,
int
probe
)
{
return
xfrm_find_algo
(
&
xfrm_calg_list
,
xfrm_alg_name_match
,
name
,
probe
);
...
...
@@ -654,7 +654,7 @@ static int xfrm_aead_name_match(const struct xfrm_algo_desc *entry,
!
strcmp
(
name
,
entry
->
name
);
}
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
char
*
name
,
int
icv_len
,
int
probe
)
struct
xfrm_algo_desc
*
xfrm_aead_get_byname
(
c
onst
c
har
*
name
,
int
icv_len
,
int
probe
)
{
struct
xfrm_aead_name
data
=
{
.
name
=
name
,
...
...
net/xfrm/xfrm_user.c
浏览文件 @
6f2f19ed
...
...
@@ -234,7 +234,7 @@ static int verify_newsa_info(struct xfrm_usersa_info *p,
}
static
int
attach_one_algo
(
struct
xfrm_algo
**
algpp
,
u8
*
props
,
struct
xfrm_algo_desc
*
(
*
get_byname
)(
char
*
,
int
),
struct
xfrm_algo_desc
*
(
*
get_byname
)(
c
onst
c
har
*
,
int
),
struct
nlattr
*
rta
)
{
struct
xfrm_algo
*
p
,
*
ualg
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录