1 /* 2 3 Copyright 2008--2013, Centre for Advanced Internet Architectures, 4 Swinburne University of Technology, http://caia.swin.edu.au 5 6 Author: Amiel Heyde, amiel@swin.edu.au 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License version 2 as 10 published by the Free Software Foundation. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 21 $Id: config.h 160 2013-08-16 01:15:19Z szander $ 22 23 */ 24 25 /* SPP Configuration File */ 26 27 /* Max length of RTP frames 28 * Maximum size in bytes that a slave will send to a master */ 29 #define MAX_PKT_LEN 1400 30 31 /* Time in microseconds to sleep before trying to create a record again (when a record could not be created) 32 * If reading from a file 1/100 of this value is used */ 33 #define TRYAGAIN_DELAY 1000000 34 35 /* When creating records - default maximum time difference between an instance that is trying to be matched at one 36 * end and the time of the current instance at the other end (in seconds). Refer to SPP algorithm reference: 37 * http://caia.swin.edu.au/reports/060707A/CAIA-TR-060707A.pdf */ 38 #define DELTA_T_MAX 60 39 40 /* When searching for a match of a packet seen at the monitor point, by default we search at most this number of 41 * packets seen at the reference point. 42 */ 43 #define MAX_PACKET_GAP 10000 44 45 /* 46 * Set the default packet gap much lower for live capture. 47 */ 48 #define MAX_PACKET_GAP_LIVE 500 49 50 /* Amount of extra information printed to the console.. used for testing. 51 * Combinations are allowed eg. 12 is Pair and Record info 52 * 1 Queue Size 53 * 2 Thread Details 54 * 4 Pair Info 55 * 8 Record Info 56 * 16 Instance Infot 57 * 32 Packet Info 58 * 64 RTT COUNT - "checksum" 59 * 128 Network Details 60 * 1024 Verbose Network Details 61 */ 62 #define DEBUG_LEVEL 104 63 64 /* Maximum length of data from which to create ID hashes 65 */ 66 #define HASH_DATA_LENGTH 128 67 68 /* Port used for network transmission 69 */ 70 #define PORT 9822 71 72