Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
16d18399
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 大约 4 年
通知
14
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
16d18399
编写于
7月 10, 2012
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
inet: Remove ->get_peer() method.
No longer used. Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
b6242b9b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
33 deletion
+0
-33
include/net/inet_connection_sock.h
include/net/inet_connection_sock.h
+0
-1
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_ipv4.c
+0
-16
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+0
-16
未找到文件。
include/net/inet_connection_sock.h
浏览文件 @
16d18399
...
...
@@ -43,7 +43,6 @@ struct inet_connection_sock_af_ops {
struct
sock
*
(
*
syn_recv_sock
)(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
struct
request_sock
*
req
,
struct
dst_entry
*
dst
);
struct
inet_peer
*
(
*
get_peer
)(
struct
sock
*
sk
);
u16
net_header_len
;
u16
net_frag_header_len
;
u16
sockaddr_len
;
...
...
net/ipv4/tcp_ipv4.c
浏览文件 @
16d18399
...
...
@@ -1847,21 +1847,6 @@ int tcp_v4_rcv(struct sk_buff *skb)
goto
discard_it
;
}
struct
inet_peer
*
tcp_v4_get_peer
(
struct
sock
*
sk
)
{
struct
rtable
*
rt
=
(
struct
rtable
*
)
__sk_dst_get
(
sk
);
struct
inet_sock
*
inet
=
inet_sk
(
sk
);
/* If we don't have a valid cached route, or we're doing IP
* options which make the IPv4 header destination address
* different from our peer's, do not bother with this.
*/
if
(
!
rt
||
inet
->
cork
.
fl
.
u
.
ip4
.
daddr
!=
inet
->
inet_daddr
)
return
NULL
;
return
rt_get_peer_create
(
rt
,
inet
->
inet_daddr
);
}
EXPORT_SYMBOL
(
tcp_v4_get_peer
);
static
struct
timewait_sock_ops
tcp_timewait_sock_ops
=
{
.
twsk_obj_size
=
sizeof
(
struct
tcp_timewait_sock
),
.
twsk_unique
=
tcp_twsk_unique
,
...
...
@@ -1874,7 +1859,6 @@ const struct inet_connection_sock_af_ops ipv4_specific = {
.
rebuild_header
=
inet_sk_rebuild_header
,
.
conn_request
=
tcp_v4_conn_request
,
.
syn_recv_sock
=
tcp_v4_syn_recv_sock
,
.
get_peer
=
tcp_v4_get_peer
,
.
net_header_len
=
sizeof
(
struct
iphdr
),
.
setsockopt
=
ip_setsockopt
,
.
getsockopt
=
ip_getsockopt
,
...
...
net/ipv6/tcp_ipv6.c
浏览文件 @
16d18399
...
...
@@ -1689,20 +1689,6 @@ static int tcp_v6_rcv(struct sk_buff *skb)
goto
discard_it
;
}
static
struct
inet_peer
*
tcp_v6_get_peer
(
struct
sock
*
sk
)
{
struct
rt6_info
*
rt
=
(
struct
rt6_info
*
)
__sk_dst_get
(
sk
);
struct
ipv6_pinfo
*
np
=
inet6_sk
(
sk
);
/* If we don't have a valid cached route, or we're doing IP
* options which make the IPv6 header destination address
* different from our peer's, do not bother with this.
*/
if
(
!
rt
||
!
ipv6_addr_equal
(
&
np
->
daddr
,
&
rt
->
rt6i_dst
.
addr
))
return
NULL
;
return
rt6_get_peer_create
(
rt
);
}
static
struct
timewait_sock_ops
tcp6_timewait_sock_ops
=
{
.
twsk_obj_size
=
sizeof
(
struct
tcp6_timewait_sock
),
.
twsk_unique
=
tcp_twsk_unique
,
...
...
@@ -1715,7 +1701,6 @@ static const struct inet_connection_sock_af_ops ipv6_specific = {
.
rebuild_header
=
inet6_sk_rebuild_header
,
.
conn_request
=
tcp_v6_conn_request
,
.
syn_recv_sock
=
tcp_v6_syn_recv_sock
,
.
get_peer
=
tcp_v6_get_peer
,
.
net_header_len
=
sizeof
(
struct
ipv6hdr
),
.
net_frag_header_len
=
sizeof
(
struct
frag_hdr
),
.
setsockopt
=
ipv6_setsockopt
,
...
...
@@ -1747,7 +1732,6 @@ static const struct inet_connection_sock_af_ops ipv6_mapped = {
.
rebuild_header
=
inet_sk_rebuild_header
,
.
conn_request
=
tcp_v6_conn_request
,
.
syn_recv_sock
=
tcp_v6_syn_recv_sock
,
.
get_peer
=
tcp_v4_get_peer
,
.
net_header_len
=
sizeof
(
struct
iphdr
),
.
setsockopt
=
ipv6_setsockopt
,
.
getsockopt
=
ipv6_getsockopt
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录