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

Put a serialized packet into a Tins::PDU &packet #490

Open
annagrunow opened this issue Sep 21, 2022 · 0 comments
Open

Put a serialized packet into a Tins::PDU &packet #490

annagrunow opened this issue Sep 21, 2022 · 0 comments

Comments

@annagrunow
Copy link

Hello, I am am trying to put a serialized PDU &packet (serialization_type) back into a PDU &packet to send it.

my Code:

PDU *new_pdu = sniffer.next_packet();
PDU &packet = *new_pdu;
auto ser_packet = packet.serialize();

//then i do some changes in my serialized pdu....

sender.send(ser_packet); // Here the Eroor occures, because the send function needs a Tins::PDU &pdu
delete new_pdu;

Can you please halp me to solve this problem?

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