… | |
… | |
102 | #define ICMP_OVERHEAD (IP_OVERHEAD + 4) |
102 | #define ICMP_OVERHEAD (IP_OVERHEAD + 4) |
103 | #define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header (wrong, but don't care) |
103 | #define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header (wrong, but don't care) |
104 | #define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + packetlength |
104 | #define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + packetlength |
105 | #define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count) |
105 | #define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count) |
106 | #define ETH_OVERHEAD 14 // the size of an ethernet header |
106 | #define ETH_OVERHEAD 14 // the size of an ethernet header |
107 | #define MAXSIZE (MAX_MTU + VPE_OVERHEAD) // slightly too large, but who cares |
107 | #define MAXSIZE (MAX_MTU + IP_OVERHEAD) // slightly too large, but who cares |
108 | |
108 | |
109 | #define PKTCACHESIZE 16 // the size of the memory pool for packets |
109 | #define PKTCACHESIZE 16 // the size of the memory pool for packets |
110 | |
110 | |
111 | extern char *confbase; // directory in which all config files are |
111 | extern char *confbase; // directory in which all config files are |
112 | extern char *thisnode; // config for current node (TODO: remove) |
112 | extern char *thisnode; // config for current node (TODO: remove) |