Source File
sys_darwin.go
Belonging Package
vendor/golang.org/x/net/route
package route
func ( RIBType) () bool {
switch {
case sysNET_RT_STAT, sysNET_RT_TRASH:
return false
default:
return true
}
}
type RouteMetrics struct {
PathMTU int // path maximum transmission unit
}
func ( *RouteMetrics) () SysType { return SysMetrics }
func ( *RouteMessage) () []Sys {
return []Sys{
&RouteMetrics{
PathMTU: int(nativeEndian.Uint32(.raw[.extOff+4 : .extOff+8])),
},
}
}
type InterfaceMetrics struct {
Type int // interface type
MTU int // maximum transmission unit
}
func ( *InterfaceMetrics) () SysType { return SysMetrics }
func ( *InterfaceMessage) () []Sys {
return []Sys{
&InterfaceMetrics{
Type: int(.raw[.extOff]),
MTU: int(nativeEndian.Uint32(.raw[.extOff+8 : .extOff+12])),
},
}
}
func () (int, map[int]*wireFormat) {
:= &wireFormat{extOff: 36, bodyOff: sizeofRtMsghdrDarwin15}
.parse = .parseRouteMessage
:= &wireFormat{extOff: 36, bodyOff: sizeofRtMsghdr2Darwin15}
.parse = .parseRouteMessage
:= &wireFormat{extOff: 16, bodyOff: sizeofIfMsghdrDarwin15}
.parse = .parseInterfaceMessage
:= &wireFormat{extOff: 32, bodyOff: sizeofIfMsghdr2Darwin15}
.parse = .parseInterfaceMessage
:= &wireFormat{extOff: sizeofIfaMsghdrDarwin15, bodyOff: sizeofIfaMsghdrDarwin15}
.parse = .parseInterfaceAddrMessage
:= &wireFormat{extOff: sizeofIfmaMsghdrDarwin15, bodyOff: sizeofIfmaMsghdrDarwin15}
.parse = .parseInterfaceMulticastAddrMessage
:= &wireFormat{extOff: sizeofIfmaMsghdr2Darwin15, bodyOff: sizeofIfmaMsghdr2Darwin15}
return 4, map[int]*wireFormat{
sysRTM_ADD: ,
sysRTM_DELETE: ,
sysRTM_CHANGE: ,
sysRTM_GET: ,
sysRTM_LOSING: ,
sysRTM_REDIRECT: ,
sysRTM_MISS: ,
sysRTM_LOCK: ,
sysRTM_RESOLVE: ,
sysRTM_NEWADDR: ,
sysRTM_DELADDR: ,
sysRTM_IFINFO: ,
sysRTM_NEWMADDR: ,
sysRTM_DELMADDR: ,
sysRTM_IFINFO2: ,
sysRTM_NEWMADDR2: ,
sysRTM_GET2: ,
}
![]() |
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. |