// 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) }
// 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))) }