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

storeing data in packet #360

Closed
ali64mohammad6464 opened this issue May 23, 2022 · 2 comments
Closed

storeing data in packet #360

ali64mohammad6464 opened this issue May 23, 2022 · 2 comments

Comments

@ali64mohammad6464
Copy link

ali64mohammad6464 commented May 23, 2022

Hi
i want to add some data to packets for example parse new protocol or some flag that i need in next elements and store parsed information in packet.
where do you suggest to store custom data for packet and how?
The solution must be such that it is compatible with click structure for example if packet reassembled or fragmented, the information will not be lost.
thanks.

@pallas
Copy link
Collaborator

pallas commented May 23, 2022 via email

@tbarbette
Copy link
Owner

@pallas's suggestion seems to be the best. Look at packet_anno.hh, or for usage of PAINT_ANNO and SET_PAINT_ANNO.

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