Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
91e1908f
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
91e1908f
编写于
6月 04, 2008
作者:
Y
YOSHIFUJI Hideaki
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[IPV6] NETNS: Handle ancillary data in appropriate namespace.
Signed-off-by:
N
YOSHIFUJI Hideaki
<
yoshfuji@linux-ipv6.org
>
上级
187e3838
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
8 deletion
+10
-8
include/net/transp_v6.h
include/net/transp_v6.h
+2
-1
net/ipv6/datagram.c
net/ipv6/datagram.c
+4
-3
net/ipv6/ip6_flowlabel.c
net/ipv6/ip6_flowlabel.c
+1
-1
net/ipv6/ipv6_sockglue.c
net/ipv6/ipv6_sockglue.c
+1
-1
net/ipv6/raw.c
net/ipv6/raw.c
+1
-1
net/ipv6/udp.c
net/ipv6/udp.c
+1
-1
未找到文件。
include/net/transp_v6.h
浏览文件 @
91e1908f
...
...
@@ -40,7 +40,8 @@ extern int datagram_recv_ctl(struct sock *sk,
struct
msghdr
*
msg
,
struct
sk_buff
*
skb
);
extern
int
datagram_send_ctl
(
struct
msghdr
*
msg
,
extern
int
datagram_send_ctl
(
struct
net
*
net
,
struct
msghdr
*
msg
,
struct
flowi
*
fl
,
struct
ipv6_txoptions
*
opt
,
int
*
hlimit
,
int
*
tclass
);
...
...
net/ipv6/datagram.c
浏览文件 @
91e1908f
...
...
@@ -496,7 +496,8 @@ int datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb)
return
0
;
}
int
datagram_send_ctl
(
struct
msghdr
*
msg
,
struct
flowi
*
fl
,
int
datagram_send_ctl
(
struct
net
*
net
,
struct
msghdr
*
msg
,
struct
flowi
*
fl
,
struct
ipv6_txoptions
*
opt
,
int
*
hlimit
,
int
*
tclass
)
{
...
...
@@ -540,7 +541,7 @@ int datagram_send_ctl(struct msghdr *msg, struct flowi *fl,
addr_type
=
__ipv6_addr_type
(
&
src_info
->
ipi6_addr
);
if
(
fl
->
oif
)
{
dev
=
dev_get_by_index
(
&
init_
net
,
fl
->
oif
);
dev
=
dev_get_by_index
(
net
,
fl
->
oif
);
if
(
!
dev
)
return
-
ENODEV
;
}
else
if
(
addr_type
&
IPV6_ADDR_LINKLOCAL
)
...
...
@@ -548,7 +549,7 @@ int datagram_send_ctl(struct msghdr *msg, struct flowi *fl,
if
(
addr_type
!=
IPV6_ADDR_ANY
)
{
int
strict
=
__ipv6_addr_src_scope
(
addr_type
)
<=
IPV6_ADDR_SCOPE_LINKLOCAL
;
if
(
!
ipv6_chk_addr
(
&
init_
net
,
&
src_info
->
ipi6_addr
,
if
(
!
ipv6_chk_addr
(
net
,
&
src_info
->
ipi6_addr
,
strict
?
dev
:
NULL
,
0
))
err
=
-
EINVAL
;
else
...
...
net/ipv6/ip6_flowlabel.c
浏览文件 @
91e1908f
...
...
@@ -354,7 +354,7 @@ fl_create(struct net *net, struct in6_flowlabel_req *freq, char __user *optval,
msg
.
msg_control
=
(
void
*
)(
fl
->
opt
+
1
);
flowi
.
oif
=
0
;
err
=
datagram_send_ctl
(
&
msg
,
&
flowi
,
fl
->
opt
,
&
junk
,
&
junk
);
err
=
datagram_send_ctl
(
net
,
&
msg
,
&
flowi
,
fl
->
opt
,
&
junk
,
&
junk
);
if
(
err
)
goto
done
;
err
=
-
EINVAL
;
...
...
net/ipv6/ipv6_sockglue.c
浏览文件 @
91e1908f
...
...
@@ -416,7 +416,7 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
msg
.
msg_controllen
=
optlen
;
msg
.
msg_control
=
(
void
*
)(
opt
+
1
);
retv
=
datagram_send_ctl
(
&
msg
,
&
fl
,
opt
,
&
junk
,
&
junk
);
retv
=
datagram_send_ctl
(
net
,
&
msg
,
&
fl
,
opt
,
&
junk
,
&
junk
);
if
(
retv
)
goto
done
;
update:
...
...
net/ipv6/raw.c
浏览文件 @
91e1908f
...
...
@@ -813,7 +813,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
memset
(
opt
,
0
,
sizeof
(
struct
ipv6_txoptions
));
opt
->
tot_len
=
sizeof
(
struct
ipv6_txoptions
);
err
=
datagram_send_ctl
(
msg
,
&
fl
,
opt
,
&
hlimit
,
&
tclass
);
err
=
datagram_send_ctl
(
sock_net
(
sk
),
msg
,
&
fl
,
opt
,
&
hlimit
,
&
tclass
);
if
(
err
<
0
)
{
fl6_sock_release
(
flowlabel
);
return
err
;
...
...
net/ipv6/udp.c
浏览文件 @
91e1908f
...
...
@@ -731,7 +731,7 @@ int udpv6_sendmsg(struct kiocb *iocb, struct sock *sk,
memset
(
opt
,
0
,
sizeof
(
struct
ipv6_txoptions
));
opt
->
tot_len
=
sizeof
(
*
opt
);
err
=
datagram_send_ctl
(
msg
,
&
fl
,
opt
,
&
hlimit
,
&
tclass
);
err
=
datagram_send_ctl
(
sock_net
(
sk
),
msg
,
&
fl
,
opt
,
&
hlimit
,
&
tclass
);
if
(
err
<
0
)
{
fl6_sock_release
(
flowlabel
);
return
err
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录