예제 #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)))
}