Begin to add egress / arp support
This commit is contained in:
parent
08c7f4891c
commit
018e9eef09
3 changed files with 21 additions and 2 deletions
|
|
@ -360,6 +360,19 @@ Echo or Echo Reply Message
|
|||
default_action = controller_debug_table_id(TABLE_ARP);
|
||||
}
|
||||
|
||||
table v4_arp_egress {
|
||||
key = {
|
||||
hdr.arp.dst_ipv4_addr: lpm;
|
||||
}
|
||||
actions = {
|
||||
controller_debug_table_id;
|
||||
set_egress_port;
|
||||
NoAction;
|
||||
}
|
||||
size = ICMP6_TABLE_SIZE;
|
||||
default_action = controller_debug_table_id(TABLE_ARP_EGRESS);
|
||||
}
|
||||
|
||||
|
||||
/********************** ROUTING (egress definiton) TABLES ***********************************/
|
||||
|
||||
|
|
@ -432,7 +445,10 @@ Echo or Echo Reply Message
|
|||
}
|
||||
v4_networks.apply(); /* regular routing, egress */
|
||||
} else if(hdr.arp.isValid()) {
|
||||
v4_arp.apply();
|
||||
if(v4_arp.apply().hit) {
|
||||
v4_arp_egress.apply();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue