camelCase to under_case
This commit is contained in:
parent
4803b56e65
commit
4d0c4f3df0
1 changed files with 7 additions and 7 deletions
|
@ -18,8 +18,8 @@
|
|||
|
||||
typedef bit<48> EthAddr_t;
|
||||
header Ethernet_h {
|
||||
EthAddr_t dstAddr;
|
||||
EthAddr_t srcAddr;
|
||||
EthAddr_t dst_addr;
|
||||
EthAddr_t src_addr;
|
||||
bit<16> etherType;
|
||||
}
|
||||
|
||||
|
@ -569,9 +569,9 @@ control TopPipe(inout Parsed_packet hdr,
|
|||
|
||||
|
||||
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;
|
||||
|
@ -595,12 +595,12 @@ control TopPipe(inout Parsed_packet hdr,
|
|||
// }
|
||||
|
||||
action do_nothing() {
|
||||
EthAddr_t temp = hdr.ethernet.dstAddr;
|
||||
EthAddr_t temp = hdr.ethernet.dst_addr;
|
||||
}
|
||||
|
||||
table lookup_table {
|
||||
key = {
|
||||
p.ethernet.dstAddr: exact;
|
||||
hdr.ethernet.dst_addr: exact;
|
||||
}
|
||||
|
||||
actions = {
|
||||
|
|
Loading…
Reference in a new issue