Update dependencies
This commit is contained in:
1 parent
033ac0b400
commit
5cdfab398d
3596 files changed
+1033483
-259
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
// This file contains IP checksum algorithms that are not specific to any
|
||||
// architecture and don't use hardware acceleration.
|
||||
|
||||
//go:build !amd64
|
||||
|
||||
package tun
|
||||
|
||||
import "strconv"
|
||||
|
||||
func Checksum(data []byte, initial uint16) uint16 {
|
||||
if strconv.IntSize < 64 {
|
||||
return checksumGeneric32(data, initial)
|
||||
}
|
||||
return checksumGeneric64(data, initial)
|
||||
}
|
||||
Reference in new issue
Block a user