Skip to content

Commit

Permalink
Update forwarding.p4
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar-costa authored Sep 19, 2022
1 parent 0f232bd commit 9d6fd2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ip_forwarding/forwarding.p4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -193,4 +193,4 @@ MyIngress(),
MyEgress(),
MyComputeChecksum(),
MyDeparser()
) main;
) main;

0 comments on commit 9d6fd2a

Please sign in to comment.