mscdex / cap

A cross-platform binding for performing packet capturing with node.js
MIT License
361 stars 45 forks source link

Add access to pcap_sendqueue functions #46

Closed pauldorn closed 7 years ago

pauldorn commented 7 years ago

pcap_sendpacket is very inefficient.

The sendqueue functions allow raw packet sending much more efficiently due to reduced context switching in the kernel.

I have included them in a manner I believe fits with this module. Please consider accepting this pull request.

pauldorn commented 7 years ago

Problem located, I will re-up when fixed.