aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-10 06:32:59 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-11 01:40:10 -0400
commit16d1839907e695387654901995f9286b65fbbc6a (patch)
tree45427133abdf0b7ccacd527cc3ad0416e4d240ff /net/ipv6
parentb6242b9b45e84ef71c59002cd128c3197938cb2f (diff)
inet: Remove ->get_peer() method.
No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/tcp_ipv6.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 9e96b5f21d2a..61175cb2478f 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1689,20 +1689,6 @@ do_time_wait:
1689 goto discard_it; 1689 goto discard_it;
1690} 1690}
1691 1691
1692static struct inet_peer *tcp_v6_get_peer(struct sock *sk)
1693{
1694 struct rt6_info *rt = (struct rt6_info *) __sk_dst_get(sk);
1695 struct ipv6_pinfo *np = inet6_sk(sk);
1696
1697 /* If we don't have a valid cached route, or we're doing IP
1698 * options which make the IPv6 header destination address
1699 * different from our peer's, do not bother with this.
1700 */
1701 if (!rt || !ipv6_addr_equal(&np->daddr, &rt->rt6i_dst.addr))
1702 return NULL;
1703 return rt6_get_peer_create(rt);
1704}
1705
1706static struct timewait_sock_ops tcp6_timewait_sock_ops = { 1692static struct timewait_sock_ops tcp6_timewait_sock_ops = {
1707 .twsk_obj_size = sizeof(struct tcp6_timewait_sock), 1693 .twsk_obj_size = sizeof(struct tcp6_timewait_sock),
1708 .twsk_unique = tcp_twsk_unique, 1694 .twsk_unique = tcp_twsk_unique,
@@ -1715,7 +1701,6 @@ static const struct inet_connection_sock_af_ops ipv6_specific = {
1715 .rebuild_header = inet6_sk_rebuild_header, 1701 .rebuild_header = inet6_sk_rebuild_header,
1716 .conn_request = tcp_v6_conn_request, 1702 .conn_request = tcp_v6_conn_request,
1717 .syn_recv_sock = tcp_v6_syn_recv_sock, 1703 .syn_recv_sock = tcp_v6_syn_recv_sock,
1718 .get_peer = tcp_v6_get_peer,
1719 .net_header_len = sizeof(struct ipv6hdr), 1704 .net_header_len = sizeof(struct ipv6hdr),
1720 .net_frag_header_len = sizeof(struct frag_hdr), 1705 .net_frag_header_len = sizeof(struct frag_hdr),
1721 .setsockopt = ipv6_setsockopt, 1706 .setsockopt = ipv6_setsockopt,
@@ -1747,7 +1732,6 @@ static const struct inet_connection_sock_af_ops ipv6_mapped = {
1747 .rebuild_header = inet_sk_rebuild_header, 1732 .rebuild_header = inet_sk_rebuild_header,
1748 .conn_request = tcp_v6_conn_request, 1733 .conn_request = tcp_v6_conn_request,
1749 .syn_recv_sock = tcp_v6_syn_recv_sock, 1734 .syn_recv_sock = tcp_v6_syn_recv_sock,
1750 .get_peer = tcp_v4_get_peer,
1751 .net_header_len = sizeof(struct iphdr), 1735 .net_header_len = sizeof(struct iphdr),
1752 .setsockopt = ipv6_setsockopt, 1736 .setsockopt = ipv6_setsockopt,
1753 .getsockopt = ipv6_getsockopt, 1737 .getsockopt = ipv6_getsockopt,