diff --git a/p4src/headers.p4 b/p4src/headers.p4 index 5abaf88..b6c30f4 100644 --- a/p4src/headers.p4 +++ b/p4src/headers.p4 @@ -4,12 +4,19 @@ #include +/**************************************** NetPFGA ****************************************/ + +/* already defined in sume_switch.p4 */ +#ifndef _SUME_SWITCH_P4_ +typedef bit<9> port_t; +#endif + /**************************************** types ****************************************/ typedef bit<48> mac_addr_t; typedef bit<32> ipv4_addr_t; typedef bit<128> ipv6_addr_t; -typedef bit<9> port_t; + typedef bit<16> mcast_t; typedef bit<16> task_t; typedef bit<16> table_t; /* to map debug messages - 16 bit to match shortenumfield */