From 16a16200026d52fc1540db86deb2d212139ebd8d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 2 Apr 2019 17:16:17 +0200 Subject: [PATCH] Also emit the arp header --- p4src/parsers.p4 | 1 + p4src/static-mapping.p4 | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/p4src/parsers.p4 b/p4src/parsers.p4 index 5cd10ad..2d4ec34 100644 --- a/p4src/parsers.p4 +++ b/p4src/parsers.p4 @@ -114,6 +114,7 @@ control MyDeparser(packet_out packet, in headers hdr) { /* either */ packet.emit(hdr.ipv4); packet.emit(hdr.ipv6); + packet.emit(hdr.arp); /* either */ packet.emit(hdr.tcp); diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index 35e7de0..1d8e1ec 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -448,7 +448,6 @@ Echo or Echo Reply Message if(v4_arp.apply().hit) { v4_arp_egress.apply(); } - } } }