google / gopacket

Provides packet processing capabilities for Go
BSD 3-Clause "New" or "Revised" License
6.35k stars 1.13k forks source link

af_packet.WritePacketData via packet mmap #458

Open styleex opened 6 years ago

styleex commented 6 years ago

It would be very convenient if af_packet was able to send packets to a network card via the packet_mmap interface.

Why to send packets also need high performance:

  1. For writing benchmarks for programs that use gopacket to decode packets (for example, I now have the task to check the performance of package decoding + data parsing from the application layer).
  2. Applications that monitor the network should be able to respond quickly to dangerous traffic.
6Seeks commented 2 years ago

Is there anyone implement it???

atoonk commented 8 months ago

This would be a great feature. Would love to see it.