diff options
author | Vincent Bernat <vincent@bernat.im> | 2016-09-08 07:57:31 +0200 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-09-12 23:48:02 -0700 |
commit | 8c11fdfd0ff67fcab0c60b4c1ba23280fa1589f2 (patch) | |
tree | 384e6364cf2522c8785c5778bc32ebeffbe0f190 /packet/mrt | |
parent | 83b6f07be76a5f5f8ae5b53b664bb8b902dcbf05 (diff) |
server: portability fix for setsockopt() on Linux
On some architecture, setsockopt() is a multiplexed syscall and is not
available directly (for example, on i386). Instead of invoking the
syscall directly, use syscall.SetsockoptString() which is safe as strings
are not null-terminated with Go.
On BSD, use syscall.SetsockoptInt(), but I don't know if there are
architectures with the same limitations as for Linux.
Signed-off-by: Vincent Bernat <vincent@bernat.im>
Diffstat (limited to 'packet/mrt')
0 files changed, 0 insertions, 0 deletions