aboutsummaryrefslogtreecommitdiffstats
path: root/conn_default.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-21 20:13:39 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-21 20:13:39 +0200
commit1c666576d584fd827dfcefdbabe797f391487624 (patch)
tree77f8dcdc292b95252a02d2e01910463872ba8419 /conn_default.go
parentRemove broken windows cruft (diff)
downloadwireguard-go-1c666576d584fd827dfcefdbabe797f391487624.tar.xz
wireguard-go-1c666576d584fd827dfcefdbabe797f391487624.zip
User cookie is closer to fwmark than setfib
Diffstat (limited to 'conn_default.go')
-rw-r--r--conn_default.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/conn_default.go b/conn_default.go
index 9f1e0b0..739fc83 100644
--- a/conn_default.go
+++ b/conn_default.go
@@ -151,10 +151,10 @@ func (bind *NativeBind) SetMark(mark uint32) error {
return err2
}
err3 := fd4.Control(func(fd uintptr) {
- err1 = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, 0x1014 /* unix.SO_SETFIB */, int(mark))
+ err1 = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, 0x1015 /* unix.SO_USER_COOKIE */, int(mark))
})
err4 := fd6.Control(func(fd uintptr) {
- err2 = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, 0x1014 /* unix.SO_SETFIB */, int(mark))
+ err2 = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, 0x1015 /* unix.SO_USER_COOKIE */, int(mark))
})
if err1 != nil {
return err1