Copyright 2016 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

package route

func ( RIBType) () bool {
	switch  {
	case sysNET_RT_STAT, sysNET_RT_TRASH:
		return false
	default:
		return true
	}
}
RouteMetrics represents route metrics.
type RouteMetrics struct {
	PathMTU int // path maximum transmission unit
}
SysType implements the SysType method of Sys interface.
func ( *RouteMetrics) () SysType { return SysMetrics }
Sys implements the Sys method of Message interface.
func ( *RouteMessage) () []Sys {
	return []Sys{
		&RouteMetrics{
			PathMTU: int(nativeEndian.Uint32(.raw[.extOff+4 : .extOff+8])),
		},
	}
}
InterfaceMetrics represents interface metrics.
type InterfaceMetrics struct {
	Type int // interface type
	MTU  int // maximum transmission unit
}
SysType implements the SysType method of Sys interface.
func ( *InterfaceMetrics) () SysType { return SysMetrics }
Darwin kernels require 32-bit aligned access to routing facilities.