You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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);
});
I'll be grateful for any advice.
The text was updated successfully, but these errors were encountered: