Make RoutingMark uint32

This commit is contained in:
世界 2024-06-15 10:55:18 +08:00
parent 0f95dfe0e3
commit 1c495c9b07
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 3 additions and 3 deletions

View file

@ -4,10 +4,10 @@ import (
"syscall"
)
func RoutingMark(mark int) Func {
func RoutingMark(mark uint32) Func {
return func(network, address string, conn syscall.RawConn) error {
return Raw(conn, func(fd uintptr) error {
return syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_MARK, mark)
return syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_MARK, int(mark))
})
}
}

View file

@ -2,6 +2,6 @@
package control
func RoutingMark(mark int) Func {
func RoutingMark(mark uint32) Func {
return nil
}