Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
b745d035
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b745d035
编写于
2月 10, 2017
作者:
P
Pablo Neira Ayuso
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netfilter: nfnetlink: get rid of u_intX_t types
Use uX types instead. Signed-off-by:
N
Pablo Neira Ayuso
<
pablo@netfilter.org
>
上级
4dee62b1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
8 deletion
+8
-8
net/netfilter/nfnetlink.c
net/netfilter/nfnetlink.c
+8
-8
未找到文件。
net/netfilter/nfnetlink.c
浏览文件 @
b745d035
...
...
@@ -100,9 +100,9 @@ int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n)
}
EXPORT_SYMBOL_GPL
(
nfnetlink_subsys_unregister
);
static
inline
const
struct
nfnetlink_subsystem
*
nfnetlink_get_subsys
(
u
_int16_t
type
)
static
inline
const
struct
nfnetlink_subsystem
*
nfnetlink_get_subsys
(
u
16
type
)
{
u
_int8_t
subsys_id
=
NFNL_SUBSYS_ID
(
type
);
u
8
subsys_id
=
NFNL_SUBSYS_ID
(
type
);
if
(
subsys_id
>=
NFNL_SUBSYS_COUNT
)
return
NULL
;
...
...
@@ -111,9 +111,9 @@ static inline const struct nfnetlink_subsystem *nfnetlink_get_subsys(u_int16_t t
}
static
inline
const
struct
nfnl_callback
*
nfnetlink_find_client
(
u
_int16_t
type
,
const
struct
nfnetlink_subsystem
*
ss
)
nfnetlink_find_client
(
u
16
type
,
const
struct
nfnetlink_subsystem
*
ss
)
{
u
_int8_t
cb_id
=
NFNL_MSG_TYPE
(
type
);
u
8
cb_id
=
NFNL_MSG_TYPE
(
type
);
if
(
cb_id
>=
ss
->
cb_count
)
return
NULL
;
...
...
@@ -185,7 +185,7 @@ static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
{
int
min_len
=
nlmsg_total_size
(
sizeof
(
struct
nfgenmsg
));
u
_int8_t
cb_id
=
NFNL_MSG_TYPE
(
nlh
->
nlmsg_type
);
u
8
cb_id
=
NFNL_MSG_TYPE
(
nlh
->
nlmsg_type
);
struct
nlattr
*
cda
[
ss
->
cb
[
cb_id
].
attr_count
+
1
];
struct
nlattr
*
attr
=
(
void
*
)
nlh
+
min_len
;
int
attrlen
=
nlh
->
nlmsg_len
-
min_len
;
...
...
@@ -273,7 +273,7 @@ enum {
};
static
void
nfnetlink_rcv_batch
(
struct
sk_buff
*
skb
,
struct
nlmsghdr
*
nlh
,
u
_int16_t
subsys_id
)
u
16
subsys_id
)
{
struct
sk_buff
*
oskb
=
skb
;
struct
net
*
net
=
sock_net
(
skb
->
sk
);
...
...
@@ -365,7 +365,7 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
{
int
min_len
=
nlmsg_total_size
(
sizeof
(
struct
nfgenmsg
));
u
_int8_t
cb_id
=
NFNL_MSG_TYPE
(
nlh
->
nlmsg_type
);
u
8
cb_id
=
NFNL_MSG_TYPE
(
nlh
->
nlmsg_type
);
struct
nlattr
*
cda
[
ss
->
cb
[
cb_id
].
attr_count
+
1
];
struct
nlattr
*
attr
=
(
void
*
)
nlh
+
min_len
;
int
attrlen
=
nlh
->
nlmsg_len
-
min_len
;
...
...
@@ -439,7 +439,7 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
static
void
nfnetlink_rcv
(
struct
sk_buff
*
skb
)
{
struct
nlmsghdr
*
nlh
=
nlmsg_hdr
(
skb
);
u
_int16_t
res_id
;
u
16
res_id
;
int
msglen
;
if
(
nlh
->
nlmsg_len
<
NLMSG_HDRLEN
||
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录