blob: 6d370365804c5b0f1cb89dad172a9f99ff42c59b [file] [log] [blame]
Yi Tseng21629932017-06-06 11:17:43 -07001#ifndef DEFINES
2#define DEFINES
Carmelo Cascone837e6452017-07-19 20:35:22 -04003
Yi Tseng21629932017-06-06 11:17:43 -07004#define MAX_PORTS 254
Carmelo Cascone837e6452017-07-19 20:35:22 -04005
Carmelo Cascone3304fd52017-07-30 00:43:01 -04006#define ETH_TYPE_IPV4 16w0x800
Carmelo Cascone837e6452017-07-19 20:35:22 -04007#define IP_TYPE_TCP 8w6
8#define IP_TYPE_UDP 8w17
9
Carmelo Cascone837e6452017-07-19 20:35:22 -040010typedef bit<9> port_t;
Carmelo Cascone3304fd52017-07-30 00:43:01 -040011
12const port_t CPU_PORT = 255;
13const port_t DROP_PORT = 511;
14
Yi Tseng21629932017-06-06 11:17:43 -070015#endif