Make gtcpip public for external use
This commit is contained in:
parent
f8e7794cc2
commit
a9027729be
42 changed files with 45 additions and 57 deletions
9
gtcpip/checksum/checksum_ts.go
Normal file
9
gtcpip/checksum/checksum_ts.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
//go:build amd64
|
||||
|
||||
package checksum
|
||||
|
||||
import "github.com/sagernet/sing-tun/internal/tschecksum"
|
||||
|
||||
func Checksum(buf []byte, initial uint16) uint16 {
|
||||
return tschecksum.Checksum(buf, initial)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue