aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/selftest
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-18 16:09:22 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 16:21:54 +0100
commite480068262528c9d60222c57109b432f5263826f (patch)
treea532e45ed09f0d231acd13547ce1a140e46d661b /src/selftest
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-e480068262528c9d60222c57109b432f5263826f.tar.xz
wireguard-monolithic-historical-e480068262528c9d60222c57109b432f5263826f.zip
netns: use read built-in instead of ncat hack for dmesg
This misses lines that are greater than 128 bytes -- read returns -EINVAL -- but the lines we care about anyway are less than that, so we simply keep looping and skip the bad reads when this happens. Not ideal, but probably the best we can do in pure bash. And, importantly, it's much better than streaming this over a TCP socket, which was an even uglier hack.
Diffstat (limited to 'src/selftest')
0 files changed, 0 insertions, 0 deletions