示例#1
0
文件: capture.go 项目: kelixin/go.pkt
// Return the link type of the capture handle (that is, the type of packets that
// come out of the packet source).
func (h *Handle) LinkType() packet.Type {
	return packet.LinkType(h.link)
}
示例#2
0
文件: capture.go 项目: kelixin/go.pkt
// Return the link type of the capture handle (that is, the type of packets that
// come out of the packet source).
func (h *Handle) LinkType() packet.Type {
	return packet.LinkType(uint32(C.pcap_datalink(h.pcap)))
}