[P4-dev] 答复: how to add header in p4_16

Bian Jason imaginezz at outlook.com
Fri Apr 14 20:56:36 EDT 2017


I will try it .

Thank you

发件人: Antonin Bas [mailto:antonin at barefootnetworks.com]
发送时间: 2017年4月13日 23:55
收件人: Bian Jason <imaginezz at outlook.com>
抄送: p4-dev at lists.p4.org
主题: Re: [P4-dev] how to add header in p4_16

Did you try the setValid() method on headers?

On Thu, Apr 13, 2017 at 4:49 AM, Bian Jason <imaginezz at outlook.com<mailto:imaginezz at outlook.com>> wrote:
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<tel:+86%20132%206949%203616>
电子邮箱:Imaginezz at outlook.com<mailto:imaginezz at outlook.com>
地址:北京市海淀区西土城路10号北京邮电大学


_______________________________________________
P4-dev mailing list
P4-dev at lists.p4.org<mailto:P4-dev at lists.p4.org>
http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org



--
Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170415/30c731f8/attachment-0002.html>


More information about the P4-dev mailing list