How define the arp header in the P4 program

HI @Lululouisa ,

  1. could you please chare your error and program?
  2. 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
1 Like