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;
|
typedef bit<48> EthAddr_t;
|
||||||
header Ethernet_h {
|
header Ethernet_h {
|
||||||
EthAddr_t dstAddr;
|
EthAddr_t dst_addr;
|
||||||
EthAddr_t srcAddr;
|
EthAddr_t src_addr;
|
||||||
bit<16> etherType;
|
bit<16> etherType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -569,9 +569,9 @@ control TopPipe(inout Parsed_packet hdr,
|
||||||
|
|
||||||
|
|
||||||
action swap_eth_addresses() {
|
action swap_eth_addresses() {
|
||||||
EthAddr_t temp = hdr.ethernet.dstAddr;
|
EthAddr_t temp = hdr.ethernet.dst_addr;
|
||||||
hdr.ethernet.dstAddr = hdr.ethernet.srcAddr;
|
hdr.ethernet.dst_addr = hdr.ethernet.src_addr;
|
||||||
hdr.ethernet.srcAddr = temp;
|
hdr.ethernet.src_addr = temp;
|
||||||
|
|
||||||
/* set egress port */
|
/* set egress port */
|
||||||
sume_metadata.dst_port = sume_metadata.src_port;
|
sume_metadata.dst_port = sume_metadata.src_port;
|
||||||
|
@ -595,12 +595,12 @@ control TopPipe(inout Parsed_packet hdr,
|
||||||
// }
|
// }
|
||||||
|
|
||||||
action do_nothing() {
|
action do_nothing() {
|
||||||
EthAddr_t temp = hdr.ethernet.dstAddr;
|
EthAddr_t temp = hdr.ethernet.dst_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
table lookup_table {
|
table lookup_table {
|
||||||
key = {
|
key = {
|
||||||
p.ethernet.dstAddr: exact;
|
hdr.ethernet.dst_addr: exact;
|
||||||
}
|
}
|
||||||
|
|
||||||
actions = {
|
actions = {
|
||||||
|
|
Loading…
Reference in a new issue