[P4-dev] Check equality of two header fields

Ashutosh Agrawal (ashu) ashu at cisco.com
Tue Jun 28 16:30:32 EDT 2016


Let’s say I’ve a packet header with srcAddr and DstAddr fields. I want to check if src and dst addresses are same and set a metadata flag. I can then use this flag as a key field for a subsequent table. AFAIK, this A==B check can only be done in Control Flow but I can’t modify the metadata there. Any ideas?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20160628/2781f54b/attachment-0002.html>


More information about the P4-dev mailing list