diff options
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/udp_media.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net/tipc/udp_media.c b/net/tipc/udp_media.c index 6af78c6276b4..d63a911e7fe2 100644 --- a/net/tipc/udp_media.c +++ b/net/tipc/udp_media.c | |||
@@ -182,15 +182,9 @@ static int tipc_udp_send_msg(struct net *net, struct sk_buff *skb, | |||
182 | goto tx_error; | 182 | goto tx_error; |
183 | } | 183 | } |
184 | ttl = ip4_dst_hoplimit(&rt->dst); | 184 | ttl = ip4_dst_hoplimit(&rt->dst); |
185 | err = udp_tunnel_xmit_skb(rt, ub->ubsock->sk, skb, | 185 | udp_tunnel_xmit_skb(rt, ub->ubsock->sk, skb, src->ipv4.s_addr, |
186 | src->ipv4.s_addr, | 186 | dst->ipv4.s_addr, 0, ttl, 0, src->udp_port, |
187 | dst->ipv4.s_addr, 0, ttl, 0, | 187 | dst->udp_port, false, true); |
188 | src->udp_port, dst->udp_port, | ||
189 | false, true); | ||
190 | if (err < 0) { | ||
191 | ip_rt_put(rt); | ||
192 | goto tx_error; | ||
193 | } | ||
194 | #if IS_ENABLED(CONFIG_IPV6) | 188 | #if IS_ENABLED(CONFIG_IPV6) |
195 | } else { | 189 | } else { |
196 | struct dst_entry *ndst; | 190 | struct dst_entry *ndst; |