[P4-dev] Usage of exceptions (p4-14)

Diogo Pinto diogo.f1.p2 at gmail.com
Wed Apr 19 12:57:03 EDT 2017


Hello,

I'm trying to drop packets at the parser. With that intent, I have
something like:

parser_exception myException {

parser_drop;

}

parser parse_X {

return select(current(0,1)) {

"case_1_value" : parse_error myException;

"case_2_value" : parse_Y;

default : ingress;

}

}

I made sure that *parse_X* is entering *case_1*. However, the packet is not
being dropped. The packet is reaching control ingress.

Are *parser_exceptions* implemented at all ?
Or does the* parser_drop* exception signal some metadata field that I can
use at ingress control ?

Thanks,
Diogo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170419/2cec435a/attachment-0002.html>


More information about the P4-dev mailing list