diff --git a/p4src/minip4_solution.p4 b/p4src/minip4_solution.p4 index 34693b6..0888d80 100644 --- a/p4src/minip4_solution.p4 +++ b/p4src/minip4_solution.p4 @@ -75,9 +75,9 @@ control TopPipe(inout headers hdr, inout sume_metadata_t sume_metadata) { action swap_eth_addresses() { - EthAddr_t temp = hdr.ethernet.dstAddr; - hdr.ethernet.dstAddr = hdr.ethernet.srcAddr; - hdr.ethernet.srcAddr = temp; + EthAddr_t temp = hdr.ethernet.dst_addr; + hdr.ethernet.dst_addr = hdr.ethernet.src_addr; + hdr.ethernet.src_addr = temp; /* set egress port */ sume_metadata.dst_port = sume_metadata.src_port; @@ -100,12 +100,12 @@ control TopPipe(inout headers hdr, } action do_nothing() { - EthAddr_t temp = hdr.ethernet.dstAddr; + EthAddr_t temp = hdr.ethernet.dst_addr; } table lookup_table { key = { - hdr.ethernet.dstAddr: exact; + hdr.ethernet.dst_addr: exact; } actions = {