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

Enhance packet walking #3

Open
anastop opened this issue Aug 24, 2016 · 0 comments
Open

Enhance packet walking #3

anastop opened this issue Aug 24, 2016 · 0 comments

Comments

@anastop
Copy link
Owner

anastop commented Aug 24, 2016

The idea is to replace the offset arithmetic used to walk through a packet and extract specific fields, with a more structured and comprehensive approach.

That is, it would be convenient if we could convert (i.e., "deserialize", "unmarshall", "unpack", ...) a byte slice corresponding to a certain OF packet region (e.g. ofp_match) to a well defined struct. Then accessing the desired packet fields would be as simple as accessing the corresponding struct fields.

This approach can potentially enhance code simplicity and readability, but may hurt performance, especially if the inspected packets contain many variable-sized fields that need many "jump-to-offset"-"read-length"-"jump-to-offset"-... operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant