Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
a70486f0
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a70486f0
编写于
2月 27, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xfrm: Pass const xfrm_address_t objects to xfrm_state_lookup* and xfrm_find_acq.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
85158621
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
9 deletion
+13
-9
include/net/xfrm.h
include/net/xfrm.h
+5
-5
net/xfrm/xfrm_state.c
net/xfrm/xfrm_state.c
+8
-4
未找到文件。
include/net/xfrm.h
浏览文件 @
a70486f0
...
...
@@ -1350,11 +1350,11 @@ extern void xfrm_state_insert(struct xfrm_state *x);
extern
int
xfrm_state_add
(
struct
xfrm_state
*
x
);
extern
int
xfrm_state_update
(
struct
xfrm_state
*
x
);
extern
struct
xfrm_state
*
xfrm_state_lookup
(
struct
net
*
net
,
u32
mark
,
xfrm_address_t
*
daddr
,
__be32
spi
,
const
xfrm_address_t
*
daddr
,
__be32
spi
,
u8
proto
,
unsigned
short
family
);
extern
struct
xfrm_state
*
xfrm_state_lookup_byaddr
(
struct
net
*
net
,
u32
mark
,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
,
const
xfrm_address_t
*
saddr
,
u8
proto
,
unsigned
short
family
);
#ifdef CONFIG_XFRM_SUB_POLICY
...
...
@@ -1481,8 +1481,8 @@ u32 xfrm_get_acqseq(void);
extern
int
xfrm_alloc_spi
(
struct
xfrm_state
*
x
,
u32
minspi
,
u32
maxspi
);
struct
xfrm_state
*
xfrm_find_acq
(
struct
net
*
net
,
struct
xfrm_mark
*
mark
,
u8
mode
,
u32
reqid
,
u8
proto
,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
int
create
,
const
xfrm_address_t
*
daddr
,
const
xfrm_address_t
*
saddr
,
int
create
,
unsigned
short
family
);
extern
int
xfrm_sk_policy_insert
(
struct
sock
*
sk
,
int
dir
,
struct
xfrm_policy
*
pol
);
...
...
net/xfrm/xfrm_state.c
浏览文件 @
a70486f0
...
...
@@ -997,7 +997,11 @@ void xfrm_state_insert(struct xfrm_state *x)
EXPORT_SYMBOL
(
xfrm_state_insert
);
/* xfrm_state_lock is held */
static
struct
xfrm_state
*
__find_acq_core
(
struct
net
*
net
,
struct
xfrm_mark
*
m
,
unsigned
short
family
,
u8
mode
,
u32
reqid
,
u8
proto
,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
int
create
)
static
struct
xfrm_state
*
__find_acq_core
(
struct
net
*
net
,
struct
xfrm_mark
*
m
,
unsigned
short
family
,
u8
mode
,
u32
reqid
,
u8
proto
,
const
xfrm_address_t
*
daddr
,
const
xfrm_address_t
*
saddr
,
int
create
)
{
unsigned
int
h
=
xfrm_dst_hash
(
net
,
daddr
,
saddr
,
reqid
,
family
);
struct
hlist_node
*
entry
;
...
...
@@ -1375,7 +1379,7 @@ int xfrm_state_check_expire(struct xfrm_state *x)
EXPORT_SYMBOL
(
xfrm_state_check_expire
);
struct
xfrm_state
*
xfrm_state_lookup
(
struct
net
*
net
,
u32
mark
,
xfrm_address_t
*
daddr
,
__be32
spi
,
xfrm_state_lookup
(
struct
net
*
net
,
u32
mark
,
const
xfrm_address_t
*
daddr
,
__be32
spi
,
u8
proto
,
unsigned
short
family
)
{
struct
xfrm_state
*
x
;
...
...
@@ -1389,7 +1393,7 @@ EXPORT_SYMBOL(xfrm_state_lookup);
struct
xfrm_state
*
xfrm_state_lookup_byaddr
(
struct
net
*
net
,
u32
mark
,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
,
const
xfrm_address_t
*
saddr
,
u8
proto
,
unsigned
short
family
)
{
struct
xfrm_state
*
x
;
...
...
@@ -1403,7 +1407,7 @@ EXPORT_SYMBOL(xfrm_state_lookup_byaddr);
struct
xfrm_state
*
xfrm_find_acq
(
struct
net
*
net
,
struct
xfrm_mark
*
mark
,
u8
mode
,
u32
reqid
,
u8
proto
,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
const
xfrm_address_t
*
daddr
,
const
xfrm_address_t
*
saddr
,
int
create
,
unsigned
short
family
)
{
struct
xfrm_state
*
x
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录