From 3ccbcd767c4a24c400c374873d02a8e87a5f14d6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 16 Jul 2019 11:53:54 +0200 Subject: [PATCH] Use new style includes --- p4src/wraptest.p4 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/p4src/wraptest.p4 b/p4src/wraptest.p4 index 3508cef..5c7a0f9 100644 --- a/p4src/wraptest.p4 +++ b/p4src/wraptest.p4 @@ -3,7 +3,18 @@ #include #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,