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

Socktapp problem using TCP #246

Open
Reply-WRE opened this issue Jan 30, 2025 · 0 comments
Open

Socktapp problem using TCP #246

Reply-WRE opened this issue Jan 30, 2025 · 0 comments

Comments

@Reply-WRE
Copy link

Hi guys, I'm having some problems using socktap with tcp interface.

I'm using a two RPI4, I'm tring to make those two communicate.

This is the code I'm using:

./socktap -l tcp --tcp-accept 10.17.82.0:5500 --print-rx-cam -i wlan0

and

./socktap -l tcp --tcp-connect 10.17.82.0:5500 --print-tx-cam -i wlan0

Now, the problem is in the receiver since I got this error:

Starting runtime at 2025-Jan-30 10:40:38.634600
Accept connetions at 10.17.82.0:5500
Enable application 'ca'...
Accept connetions at 10.17.82.0:5500
received packet from d8:3a:dd:1c:bd:3d (39 bytes)
Router dropped packet because of Parse_Secured_Header (2)
Socket removed

I've triyng to debug and I noticed that the problem is inside the asn1c_wrapper.cpp: decode_oer, since the return is false.

I attach some screenshot to my local variables taken by tring to debug it. The problem is that I'm not very familiar with this tool so I really don't understand the underling problem that lead to this problem, maybe it's just a simple mistake I'm doing.

Image

As you can see the code is RC_WMORE.

Other locals variables:

Image

Image

Image

Image

Image

Image

These are the relevants ones.

For the secure_message.cc :

Image

the buffer and msg are:

Image

Image

Image

Please, can someone help me understand what's going on? Thank you very much :)

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

1 participant