[P4-dev] extern function return in backend

hemant at mnkcg.com hemant at mnkcg.com
Fri Oct 20 11:57:34 EDT 2017

The extern below has a function returning bool.  The args of the function
are not relevant to my question and thus are replaced with ellipses.


extern myExtern {


       bool compare(.);



I know args to an extern function are obtained by backend software as
follows, such as getting the first arg:




How does one get the bool returned from the function in backend to see if
the frontend P4 program used "!extvar.compare()" or "extvar.compare()"?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20171020/04e2ea79/attachment-0002.html>

More information about the P4-dev mailing list