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;