Source File
sys.go
Belonging Package
vendor/golang.org/x/net/route
package route
import
var (
nativeEndian binaryByteOrder
kernelAlign int
rtmVersion byte
wireFormats map[int]*wireFormat
)
func () {
:= uint32(1)
:= (*[4]byte)(unsafe.Pointer(&))
if [0] == 1 {
nativeEndian = littleEndian
} else {
nativeEndian = bigEndian
rtmVersion = sysRTM_VERSION
kernelAlign, wireFormats = probeRoutingStack()
}
func ( int) int {
if == 0 {
return kernelAlign
}
return ( + kernelAlign - 1) &^ (kernelAlign - 1)
}
type wireFormat struct {
extOff int // offset of header extension
bodyOff int // offset of message body
parse func(RIBType, []byte) (Message, error)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |