init
This commit is contained in:
7
sockopts_linux.go
Normal file
7
sockopts_linux.go
Normal file
@ -0,0 +1,7 @@
|
||||
package gost
|
||||
|
||||
import "syscall"
|
||||
|
||||
func setSocketMark(fd int, value int) (e error) {
|
||||
return syscall.SetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_MARK, value)
|
||||
}
|
Reference in New Issue
Block a user