We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While playing with a small example, I made a small typo that triggered a compiler bug. Note that in the deparser, I wrote h instead of hdr.
h
hdr
#include <v1model.p4> header d_t { bit<32> f; } struct h { d_t d; } struct m { } parser MyParser(packet_in b, out h hdr, inout m meta, inout standard_metadata_t standard_metadata) { state start { b.extract(hdr.d); transition accept; } } control MyVerifyChecksum(in h hdr, inout m meta) { apply {} } control MyIngress(inout h hdr, inout m meta, inout standard_metadata_t standard_metadata) { apply {} } control MyEgress(inout h hdr, inout m meta, inout standard_metadata_t standard_metadata) { apply {} } control MyComputeChecksum(inout h hdr, inout m meta) { apply {} } control MyDeparser(packet_out b, in h hdr) { apply { b.emit(h.d); } } V1Switch(MyParser(), MyVerifyChecksum(), MyIngress(), MyEgress(), MyComputeChecksum(), MyDeparser()) main;
The text was updated successfully, but these errors were encountered:
Fix for issue #125
9d2bbb7
Looks good to me. Closing.
Sorry, something went wrong.
No branches or pull requests
While playing with a small example, I made a small typo that triggered a compiler bug. Note that in the deparser, I wrote
h
instead ofhdr
.The text was updated successfully, but these errors were encountered: