Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
16d18399
Commit
16d18399
authored
Jul 10, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inet: Remove ->get_peer() method.
No longer used. Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
b6242b9b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
33 deletions
+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
No files found.
include/net/inet_connection_sock.h
View file @
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
View file @
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
View file @
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment