Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing packets #216

Open
sdadek opened this issue Oct 4, 2016 · 1 comment
Open

Missing packets #216

sdadek opened this issue Oct 4, 2016 · 1 comment

Comments

@sdadek
Copy link

sdadek commented Oct 4, 2016

Hello,

I have some problems with capturing packets. At the beginning of the observation connection, there are more packets, so I lose a lot of packets. Later it works well.
I've tried to increase the buffer and change the timeout, but it did not work.

var pcap = require('./node_modules/pcap'),
pcap_session = pcap.createSession('enp0s3', "host someIpv4");

pcap_session.on('packet', function (raw_packet) {
var packet = pcap.decode.packet(raw_packet);

var data = packet.payload.payload.payload.data;

if (data != null)
{
console.log(data.readUInt8(0));
}

});

I'll be grateful for any advice.

@robsontenorio
Copy link

Same problem #229

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants