[P4-dev] how to add header in p4_16

Antonin Bas antonin at barefootnetworks.com
Thu Apr 13 11:54:37 EDT 2017


Did you try the setValid() method on headers?

On Thu, Apr 13, 2017 at 4:49 AM, Bian Jason <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 <+86%20132%206949%203616>*
>
> *电子邮箱:Imaginezz at outlook.com <imaginezz at outlook.com>*
>
> *地址:北京市海淀区西土城路10号北京邮电大学*
>
>
>
> _______________________________________________
> P4-dev mailing list
> 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/20170413/e4a75bc9/attachment-0002.html>


More information about the P4-dev mailing list