Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PacketCh = make(chan []byte, 1000)
)
Functions ¶
func MergePcapStrings ¶ added in v1.0.7
MergePcapStrings 将多个pcap包字符串合并并保存到一个pcap文件中 outputFile:文件根路径(自动按照年月日创建文件夹)return currentPath
func OpenOffline ¶
Types ¶
type FastParser ¶
type FastParser struct {
// contains filtered or unexported fields
}
func NewFastParser ¶
func NewFastParser() *FastParser
type Interface ¶
type Interface struct {
Name string //设备名称
Description string //设备描述信息
Flags uint32
Addresses []InterfaceAddress //网口的地址信息列表
}
type InterfaceAddress ¶
type InterfaceAddress struct {
IP net.IP
Netmask net.IPMask // Netmask may be nil if we were unable to retrieve it.
Broadaddr net.IP // Broadcast address for this IP may be nil
P2P net.IP // P2P destination address for this IP may be nil
}
InterfaceAddress describes an address associated with an Interface. Currently, it's IPv4/6 specific.
Click to show internal directories.
Click to hide internal directories.