mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-09-18 17:56:52 +08:00
change pcap handler
This commit is contained in:
@@ -128,8 +128,8 @@ func (nc *networkCard) listenNormal() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// packet := gopacket.NewPacket(data, layers.LayerTypeEthernet, gopacket.NoCopy)
|
packet := gopacket.NewPacket(data, layers.LayerTypeEthernet, gopacket.NoCopy)
|
||||||
packet := gopacket.NewPacket(data, handler.LinkType(), gopacket.NoCopy)
|
// packet := gopacket.NewPacket(data, handler.LinkType(), gopacket.NoCopy)
|
||||||
m := packet.Metadata()
|
m := packet.Metadata()
|
||||||
m.CaptureInfo = ci
|
m.CaptureInfo = ci
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user