[P4-dev] how to add header in p4_16

Bian Jason imaginezz at outlook.com
Thu Apr 13 07:49:16 EDT 2017


Hello,
I have some questions about how to add header in p4_16.
I use the code of simple_router.p4app in https://github.com/p4lang/p4app/tree/master/examples/simple_router.p4app.
And I declared a header test_udp in header.p4 and use packet.emit(test_udp) in DeparserImpl, but the code doesn’t work.

Thanks,
Jason

祝好
-----------------------------
边子政
北京邮电大学
移动电话:+8613269493616
电子邮箱:Imaginezz at outlook.com<mailto:imaginezz at outlook.com>
地址:北京市海淀区西土城路10号北京邮电大学

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170413/3ff87fd4/attachment-0002.html>


More information about the P4-dev mailing list