[P4-dev] parsing variable-length fields in HTTP
af12abw at gmail.com
Fri Jul 14 16:23:08 EDT 2017
I wonder if P4 is capable of parsing HTTP protocol with its variable-length
etc. where each variable-length field is terminated with "\r\n" character
As far as I know, P4 can accommodate only one variable-length field by
using "*", which value will be derived by calculating length and
max_length. But with HTTP, most fields are of variable length.
What I'd like to be able to do is to parse each field individually i.e.
doing a match based on "Hosts:, "User-Agent:", etc. Is this doable yet?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev