Documentation ¶
Index ¶
Constants ¶
View Source
const (
TUNNoPersist = 0 // 清除持久标志
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type C_Sockaddr ¶
type Rtentry ¶
type Rtentry struct { Pad1 uint64 Dst C_Sockaddr /* target address */ Gateway C_Sockaddr /* gateway addr (RTF_GATEWAY) */ Genmask C_Sockaddr /* target network mask (IP) */ Flags uint16 Pad2 int16 Pad0 [4]byte Pad3 uint64 Tos uint8 Class uint8 Pad4 [3]int16 Metric int16 /* +1 for binary compatibility! */ Dev *byte /* forcing the device at add */ Mtu uint32 /* per route MTU/Window */ Window uint32 /* Window clamping */ Irtt uint16 /* Initial RTT */ }
Click to show internal directories.
Click to hide internal directories.