Win10, npcap-0.9991, dhcp network (no ip)
Tried every device in deviceList, same result with no packet capture.
var Cap = require('cap').Cap;
var device = Cap.deviceList()[2].name; // physical realtek card
var buffer = Buffer.alloc(65535);
var linkType = c.open(device, '', (10 * 1024 * 1024), buffer);
c.setMinBytes && c.setMinBytes(0);
c.on('packet', function(nbytes, trunc) {
console.log('packet: length ' + nbytes + ' bytes, truncated? ' + (trunc ? 'yes' : 'no'));
});
A lot of: packet: length 0 bytes, truncated? no in console.
How to make it work ?
Win10, npcap-0.9991, dhcp network (no ip)
Tried every device in deviceList, same result with no packet capture.
A lot of:
packet: length 0 bytes, truncated? noin console.How to make it work ?