Use new style includes

This commit is contained in:
Nico Schottelius 2019-07-16 11:53:54 +02:00
parent 1a39c35e3b
commit 3ccbcd767c

View file

@ -3,7 +3,18 @@
#include <v1model.p4>
#include "headers.p4"
#include "parsers.p4"
parser MyParser(packet_in packet,
out headers hdr,
inout metadata meta,
inout standard_metadata_t standard_metadata) {
#include "parsers.p4"
}
control MyDeparser(packet_out packet, in headers hdr) {
#include "deparser.p4"
}
control MyIngress(inout headers hdr,
inout metadata meta,