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

Packet payload always null #229

Open
robsontenorio opened this issue Jul 22, 2017 · 2 comments
Open

Packet payload always null #229

robsontenorio opened this issue Jul 22, 2017 · 2 comments

Comments

@robsontenorio
Copy link

robsontenorio commented Jul 22, 2017

Hi,

var pcap = require('pcap')
var pcapSession = pcap.createSession('en1', 'tcp port 2201 or 2202')

pcapSession.on('packet', function (rawPacket) {
      var packet = pcap.decode.packet(rawPacket)
      console.log(packet)
    })

Each packet from filter (tcp port 2201 or 2202) is captured, but packet.payload.payload.payload.data is null

Even runing with no filter (all tcp packets) results the same.

Am i missing something?

captura_de_tela_2017-07-22_as_13_26_45

@Nomeyho
Copy link

Nomeyho commented Nov 16, 2018

Same issue, any workaround?

@tylers-username
Copy link

sudo sysctl -w net.inet.tcp.tso=0 seems to help. However, some data properties continue to be null 🤷

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

3 participants