diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-21 20:13:39 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-21 20:13:39 +0200 |
commit | 1c666576d584fd827dfcefdbabe797f391487624 (patch) | |
tree | 77f8dcdc292b95252a02d2e01910463872ba8419 | |
parent | 2ae22ac65daac44c9d4b2eb530db9e8863f4a21a (diff) |
User cookie is closer to fwmark than setfib
-rw-r--r-- | conn_default.go | 4 |
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 |