Author: biurrun Date: Tue Nov 24 10:44:22 2009 New Revision: 1759 Log: Remove a bunch of unused #defines. Modified: trunk/libpisa/global.h Modified: trunk/libpisa/global.h ============================================================================== --- trunk/libpisa/global.h Tue Nov 24 10:41:19 2009 (r1758) +++ trunk/libpisa/global.h Tue Nov 24 10:44:22 2009 (r1759) @@ -68,31 +68,11 @@ #define MAX_IFNAME IF_NAMESIZE /** - * Maximum length of a MAC address - */ -#define MAX_MACADDR 18 - -/** - * Maximum length of an IPv4 address string - */ -#define MAX_IPV4ADDR 16 - -/** - * Maximum length of an IPv6 address string - */ -#define MAX_IPV6ADDR 46 - -/** * Maximum length of a general buffer */ #define MAX_BUF 2048 /** - * Maximum length of a command line text - */ -#define MAX_CMDTEXT 1024 - -/** * Maximum length of a general path */ #define MAX_PATH 256 @@ -103,12 +83,6 @@ #define MAX_PORTNUM 65535 /** - * normal payload buffer - * 1452 - 20(?) = 1432 - */ -#define MAX_PAYLOAD_BUFFER 1432 - -/** * Force the inlining of a function. There are 2 consequences: * 1. inlining even at zero optimization level * 2. make the compiler stop spitting warnings related to code size @@ -132,14 +106,12 @@ */ #define PISACD_DEFAULT_PORTNUM_CONTROL 5001 #define PISACD_DEFAULT_PORTNUM_DATA 5002 -#define PISACD_DEFAULT_PORTNUM_PASRV 5011 /** * Default port number of server daemon for trust point */ #define PISASD_DEFAULT_PORTNUM_CONTROL 5001 #define PISASD_DEFAULT_PORTNUM_DATA 5002 -#define PISASD_DEFAULT_PORTNUM_PSTUN 5003 /** * path and file names for configuration files