diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-08 13:46:21 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-12 12:23:45 +0100 |
commit | f29e3acc336e911e88ffa9bbcba24efaf6caaee7 (patch) | |
tree | 563ce60f485cc36500d5f701a781e6dddcd69702 /src/socket.c | |
parent | version: bump snapshot (diff) | |
download | wireguard-monolithic-historical-f29e3acc336e911e88ffa9bbcba24efaf6caaee7.tar.xz wireguard-monolithic-historical-f29e3acc336e911e88ffa9bbcba24efaf6caaee7.zip |
socket: convert to ipv6_dst_lookup_flow for 5.5
Upstream changed the API, so we introduce this super insane compat hack
to make everything work again.
Diffstat (limited to '')
-rw-r--r-- | src/socket.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/socket.c b/src/socket.c index a90dadd..c46256d 100644 --- a/src/socket.c +++ b/src/socket.c @@ -142,9 +142,10 @@ static int send6(struct wg_device *wg, struct sk_buff *skb, if (cache) dst_cache_reset(cache); } - ret = ipv6_stub->ipv6_dst_lookup(sock_net(sock), sock, &dst, - &fl); - if (unlikely(ret)) { + dst = ipv6_stub->ipv6_dst_lookup_flow(sock_net(sock), sock, &fl, + NULL); + if (unlikely(IS_ERR(dst))) { + ret = PTR_ERR(dst); net_dbg_ratelimited("%s: No route to %pISpfsc, error %d\n", wg->dev->name, &endpoint->addr, ret); goto err; |