ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/global.h
(Generate patch)

Comparing gvpe/src/global.h (file contents):
Revision 1.14 by pcg, Sat Oct 4 13:20:08 2003 UTC vs.
Revision 1.17 by pcg, Mon Feb 9 00:47:15 2004 UTC

1/* 1/*
2 global.h -- global variables and constants 2 global.h -- global variables and constants
3 Copyright (C) 2003-2004 Marc Lehmann <pcg@goof.com>
3 4
4 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version. 8 (at your option) any later version.
55// hdr seq len hmac MAC MAC 56// hdr seq len hmac MAC MAC
56#define VPE_OVERHEAD (4 + 4 + 4 + RAND_SIZE + HMACLENGTH - 6 - 6) 57#define VPE_OVERHEAD (4 + 4 + 4 + RAND_SIZE + HMACLENGTH - 6 - 6)
57#define IP_OVERHEAD 20 // size of a (normal) ip header 58#define IP_OVERHEAD 20 // size of a (normal) ip header
58#define GRE_OVERHEAD (IP_OVERHEAD + 4) 59#define GRE_OVERHEAD (IP_OVERHEAD + 4)
59#define ICMP_OVERHEAD (IP_OVERHEAD + 4) 60#define ICMP_OVERHEAD (IP_OVERHEAD + 4)
60#define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header 61#define UDP_OVERHEAD (IP_OVERHEAD + 20) // size of a (normal) ip + udp header (wrong, but don't care)
61#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + pakcetlength 62#define TCP_OVERHEAD (IP_OVERHEAD + 22) // size of a (normal) ip + tcp header + packetlength
62#define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count) 63#define MAX_OVERHEAD UDP_OVERHEAD // the max. overhead of any protocol (ok, tcp doesn't count)
63#define ETH_OVERHEAD 14 // the size of an ethernet header 64#define ETH_OVERHEAD 14 // the size of an ethernet header
64#define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares 65#define MAXSIZE (MAX_MTU + VPE_OVERHEAD)// slightly too large, but who cares
65 66
66#define PKTCACHESIZE 5 // the size of the memory pool for packets 67#define PKTCACHESIZE 5 // the size of the memory pool for packets

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines