Documentation ¶
Index ¶
- Constants
- type MsgBreak
- type MsgCarrier
- type MsgChangeUpperXid
- type MsgEthtoolFlags
- type MsgEthtoolLinkModes
- type MsgEthtoolSettings
- type MsgFib6Entry
- type MsgFibEntry
- type MsgHeader
- type MsgIfInfo
- type MsgIfa
- type MsgIfa6
- type MsgKind
- type MsgNeighUpdate
- type MsgNetNs
- type MsgSpeed
- type MsgStat
- type NextHop
- type NextHop6
Constants ¶
View Source
const ( MsgKindBreak = 0x0 MsgKindLinkStat = 0x1 MsgKindEthtoolStat = 0x2 MsgKindEthtoolFlags = 0x3 MsgKindEthtoolSettings = 0x4 MsgKindEthtoolLinkModesSupported = 0x5 MsgKindEthtoolLinkModesAdvertising = 0x6 MsgKindEthtoolLinkModesLPAdvertising = 0x7 MsgKindDumpIfInfo = 0x8 MsgKindCarrier = 0x9 MsgKindSpeed = 0xa MsgKindIfInfo = 0xb MsgKindIfa = 0xc MsgKindIfa6 = 0xd MsgKindDumpFibInfo = 0xe MsgKindFibEntry = 0xf MsgKindFib6Entry = 0x10 MsgKindNeighUpdate = 0x11 MsgKindChangeUpperXid = 0x12 MsgKindNetNsAdd = 0x13 MsgKindNetNsDel = 0x14 )
View Source
const ( SizeofMsg = 0x10 SizeofMsgBreak = 0x10 SizeofMsgCarrier = 0x18 SizeofMsgChangeUpperXid = 0x20 SizeofMsgDumpFibInfo = 0x10 SizeofMsgDumpIfInfo = 0x10 SizeofMsgEthtoolFlags = 0x18 SizeofMsgEthtoolSettings = 0x20 SizeofMsgEthtoolLinkModes = 0x20 SizeofMsgIfa = 0x20 SizeofMsgIfa6 = 0x30 SizeofMsgIfInfo = 0x40 SizeofNextHop = 0x18 SizeofNextHop6 = 0x20 SizeofMsgFibEntry = 0x28 SizeofMsgFib6Entry = 0x50 SizeofMsgNeighUpdate = 0x38 SizeofMsgNetNs = 0x18 SizeofMsgSpeed = 0x18 SizeofMsgStat = 0x20 )
View Source
const ( SizeofIfName = 0x10 SizeofEthAddr = 0x6 SizeofJumboFrame = 0x2600 )
View Source
const ( NETDEV_UP = 1 + iota NETDEV_DOWN NETDEV_REBOOT NETDEV_CHANGE NETDEV_REGISTER NETDEV_UNREGISTER NETDEV_CHANGEMTU NETDEV_CHANGEADDR NETDEV_GOING_DOWN NETDEV_CHANGENAME NETDEV_FEAT_CHANGE NETDEV_BONDING_FAILOVER NETDEV_PRE_UP NETDEV_PRE_TYPE_CHANGE NETDEV_POST_TYPE_CHANGE NETDEV_POST_INIT NETDEV_UNREGISTER_FINAL NETDEV_RELEASE NETDEV_NOTIFY_PEERS NETDEV_JOIN NETDEV_CHANGEUPPER NETDEV_RESEND_IGMP NETDEV_PRECHANGEMTU NETDEV_CHANGEINFODATA NETDEV_BONDING_INFO NETDEV_PRECHANGEUPPER NETDEV_CHANGELOWERSTATE NETDEV_UDP_TUNNEL_PUSH_INFO NETDEV_CHANGE_TX_QUEUE_LEN )
View Source
const ( IfInfoReasonNew = 0x0 IfInfoReasonDel = 0x1 IfInfoReasonUp = 0x2 IfInfoReasonDown = 0x3 IfInfoReasonDump = 0x4 IfInfoReasonReg = 0x5 IfInfoReasonUnreg = 0x6 )
View Source
const ( CarrierOff = 0x0 CarrierOn = 0x1 )
View Source
const ( IFA_ADD = NETDEV_UP IFA_DEL = NETDEV_DOWN )
View Source
const ( VlanIflaUnspec = 0x0 VlanIflaVid = 0x1 )
View Source
const MsgVersion = 0x2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgChangeUpperXid ¶
type MsgEthtoolFlags ¶
type MsgEthtoolLinkModes ¶
type MsgEthtoolSettings ¶
type MsgFib6Entry ¶
type MsgFib6Entry struct { Header MsgHeader Net uint64 Address [16]uint8 Length uint8 Event uint8 Nsiblings uint8 Type uint8 Table uint32 Nh NextHop6 }
func (*MsgFib6Entry) Siblings ¶
func (msg *MsgFib6Entry) Siblings() []NextHop6
type MsgFibEntry ¶
type MsgFibEntry struct { Header MsgHeader Net uint64 Address uint32 Mask uint32 Event uint8 Nhs uint8 Tos uint8 Type uint8 Table uint32 }
func (*MsgFibEntry) NextHops ¶
func (msg *MsgFibEntry) NextHops() []NextHop
type MsgNeighUpdate ¶
Click to show internal directories.
Click to hide internal directories.