master-thesis/p4src/netpfga.p4

20 lines
299 B
Plaintext

#ifndef DUMMY_NETPFGA
#define DUMMY_NETPFGA
action send_to_port1() {
sume_metadata.dst_port = 1;
}
table dummy_table_for_netpfga {
key = {
hdr.ethernet.dst_addr: exact;
}
actions = {
send_to_port1;
}
size = 64;
default_action = send_to_port1;
}
#endif