aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/allowedips.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-07 20:14:43 +0900
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-10 16:20:09 +0900
commitf283e17e12ce2199ce75b92d3a778ac8830cc2f9 (patch)
treee17a9b2e9ef612d8637b9ab3b93f2fa749eeb436 /src/allowedips.c
parentcompat: 4.4.0 has strange ECN function (diff)
downloadwireguard-linux-compat-f283e17e12ce2199ce75b92d3a778ac8830cc2f9.tar.xz
wireguard-linux-compat-f283e17e12ce2199ce75b92d3a778ac8830cc2f9.zip
netlink: make sure we reserve space for NLMSG_DONE
Otherwise, if messages pack really close together, we'll exceed the size of the sk_buff and return ENOBUFS. I suspect this has been the cause of a lot of weird bugs that people just worked around by increasing the receive buffer size. This actually addresses the root cause. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/allowedips.c')
0 files changed, 0 insertions, 0 deletions