HI @Lululouisa ,
- could you please chare your error and program?
- here and example of P4 program, tutorials/basic.p4 at master · p4lang/tutorials · GitHub, in general you should define your header and then you can use it in the parser and in the ingress/egress pipeline. More in detail, tutorials/basic.p4 at master · p4lang/tutorials · GitHub here the parser check if the value of the ethernet type is IPV4 if yes the parser start to parse the IPv4 header. You have to do a similar things according to the ARP protocol specification