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

[prototyping] Parser metadata handling #6

Closed
chkim4142 opened this issue Oct 19, 2015 · 1 comment
Closed

[prototyping] Parser metadata handling #6

chkim4142 opened this issue Oct 19, 2015 · 1 comment
Milestone

Comments

@chkim4142
Copy link
Contributor

This will enable TLV-style header parsing.

  • Use a metadata instance to keep track of # of bytes extracted or to extract
  • Allow arbitrary expressions in set_metadata() source argument. This way, one can modify the value of a metadata during parsing.

Code example:
ipv4_options_parser_setmetadata.pdf

@chkim4142 chkim4142 added this to the P4-v1.1 milestone Oct 19, 2015
@chkim4142 chkim4142 changed the title parser metadata prototyping [prototyping] parser metadata handling Oct 19, 2015
@chkim4142 chkim4142 changed the title [prototyping] parser metadata handling [prototyping] Parser metadata handling Oct 20, 2015
@chkim4142
Copy link
Contributor Author

This is done in P4_14 v1.1.

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