From 9d6fd2a7328d58442669c056958e9bad1f289ff3 Mon Sep 17 00:00:00 2001 From: Edgar Costa <14999705+edgar-costa@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:40:14 +0200 Subject: [PATCH] Update forwarding.p4 --- examples/ip_forwarding/forwarding.p4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ip_forwarding/forwarding.p4 b/examples/ip_forwarding/forwarding.p4 index 139be15..6db8d30 100644 --- a/examples/ip_forwarding/forwarding.p4 +++ b/examples/ip_forwarding/forwarding.p4 @@ -95,7 +95,7 @@ control MyIngress(inout headers hdr, action ipv4_forward(macAddr_t dstAddr, egressSpec_t port) { - //set the src mac address as the previous dst, this is not correct right? + //set the src mac address as the previous dst hdr.ethernet.srcAddr = hdr.ethernet.dstAddr; //set the destination mac address that we got from the match in the table @@ -193,4 +193,4 @@ MyIngress(), MyEgress(), MyComputeChecksum(), MyDeparser() -) main; \ No newline at end of file +) main;