[P4-dev] Is it possible to transfer value from packet fields to action?

Archie anubhavnidhi1009 at gmail.com
Mon Jul 20 21:23:45 EDT 2015

     I was wondering whether it is possible to transfer data from the field
values mentioned in the table to the action part of P4.

e.g. if you have the following table

table forward {
    reads {
        ethernet.dstAddr : exact;
    actions {

then is it possible to transfer the value of ethernet.dstAddr to set_egr?

Also can anyone explain the following code to me? I found it in the here
am not sure what this is. Is it an array?

#define VLAN_DEPTH 2
header vlan_tag_t vlan_tag_[VLAN_DEPTH];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20150720/3a2440f8/attachment-0001.html>

More information about the P4-dev mailing list