master-thesis/p4src/settings.p4
Nico Schottelius 6b176fdc06 table size up, down, up...
Exact matches don't like 63

actions_nat64_generic.p4(173): error: table size too small for match_type(EM): 63 < 64
        size = 63;
               ^^
actions_nat64_generic.p4(173): error: could not not map table size size
        size = 63;
        ^^^^
2019-07-24 22:42:05 +02:00

19 lines
794 B
Plaintext

/* -*- P4_16 -*- */
/* table sizes, register widths, and such */
#ifndef SETTINGS_P4
#define SETTINGS_P4
#define THE_ANSWER_TO_LIFE_THE_UNIVERSE_AND_EVERYTHING 42 /* Important constant */
#define SIZE_FOR_EVERYTHING 64
#define ROUTING_TABLE_SIZE SIZE_FOR_EVERYTHING /* maximum routes per protocol */
#define ADDRESS_TABLE_SIZE SIZE_FOR_EVERYTHING /* maximum number of addresses per protocol */
#define NDP_TABLE_SIZE SIZE_FOR_EVERYTHING /* maximum number of multicast groups */
#define ICMP6_TABLE_SIZE SIZE_FOR_EVERYTHING /* icmp6 handlers */
#define ICMP_TABLE_SIZE SIZE_FOR_EVERYTHING /* icmp6 handlers */
#define NAT64_TABLE_SIZE SIZE_FOR_EVERYTHING /* nat64 and nat46 entries */
#define TEST_TABLE_SIZE SIZE_FOR_EVERYTHING /* nat64 and nat46 entries */
#endif