- Update
  patches.fixes/inet-Pass-inetpeer-root-into-inet_getpeer-interfaces.patch
  (bnc#864833 bnc#870801).
- Refresh
  patches.fixes/inet-Hide-route-peer-accesses-behind-helpers.patch.

suse-commit: 172cdff8d6a4f5d488dc82dff867e68ef50201cc
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index a9227fc..3f0b72a 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1793,7 +1793,7 @@
 
 	if (!rt ||
 	    inet->cork.fl.u.ip4.daddr != inet->inet_daddr) {
-		peer = inet_getpeer_v4(net, inet->inet_daddr, 1);
+		peer = inet_getpeer_v4(net->ipv4.peers, inet->inet_daddr, 1);
 		*release_it = true;
 	} else {
 		if (!rt_has_peer(rt))
@@ -1811,7 +1811,7 @@
 	struct inet_timewait_sock *tw = inet_twsk(sk);
 	struct net *net = sock_net(sk);
 
-	return inet_getpeer_v4(net, tw->tw_daddr, 1);
+	return inet_getpeer_v4(net->ipv4.peers, tw->tw_daddr, 1);
 }
 EXPORT_SYMBOL(tcp_v4_tw_get_peer);
 
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 6ac9fb5..1a2be8b 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1871,7 +1871,7 @@
 
 	if (!rt ||
 	    !ipv6_addr_equal(&np->daddr, &rt->rt6i_dst.addr)) {
-		peer = inet_getpeer_v6(net, &np->daddr, 1);
+		peer = inet_getpeer_v6(net->ipv6.peers, &np->daddr, 1);
 		*release_it = true;
 	} else {
 		if (!rt6_has_peer(rt))
@@ -1892,7 +1892,7 @@
 	if (tw->tw_family == AF_INET)
 		return tcp_v4_tw_get_peer(sk);
 
-	return inet_getpeer_v6(net, &tw6->tw_v6_daddr, 1);
+	return inet_getpeer_v6(net->ipv6.peers, &tw6->tw_v6_daddr, 1);
 }
 
 static struct timewait_sock_ops tcp6_timewait_sock_ops = {