NETWORK ATTACKS FRAMEWORK
1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
|
00001 /***************************************************************************** 00002 * 00003 * Copyright (C) 2001 Uppsala University & Ericsson AB. 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 * Authors: Erik Nordstr�m, <erik.nordstrom@it.uu.se> 00020 * 00021 * 00022 *****************************************************************************/ 00023 #ifndef NA_PARAMS_H 00024 #define NA_PARAMS_H 00025 00026 #include "NA_defs_aodv.h" 00027 00028 #define K_PARAM 5 00029 00030 /* Dynamic configuration values. Default numbers are for HELLO messages. */ 00031 #define ACTIVE_ROUTE_TIMEOUT active_route_timeout 00032 #define TTL_START ttl_start 00033 #define DELETE_PERIOD delete_period 00034 00035 /* Settings for Link Layer Feedback */ 00036 #define ACTIVE_ROUTE_TIMEOUT_LLF 10000 00037 #define TTL_START_LLF 1 00038 #define DELETE_PERIOD_LLF ACTIVE_ROUTE_TIMEOUT_LLF 00039 00040 /* Settings for HELLO messages */ 00041 #define ACTIVE_ROUTE_TIMEOUT_HELLO 3000 00042 #define TTL_START_HELLO 2 00043 #define DELETE_PERIOD_HELLO K_PARAM * max(ACTIVE_ROUTE_TIMEOUT_HELLO, ALLOWED_HELLO_LOSS * HELLO_INTERVAL) 00044 00045 /* Non runtime modifiable settings */ 00046 #define ALLOWED_HELLO_LOSS 2 00047 /* If expanding ring search is used, BLACKLIST_TIMEOUT should be?: */ 00048 #define BLACKLIST_TIMEOUT RREQ_RETRIES * NET_TRAVERSAL_TIME + (TTL_THRESHOLD - TTL_START)/TTL_INCREMENT + 1 + RREQ_RETRIES 00049 #define HELLO_INTERVAL 1000 00050 #define LOCAL_ADD_TTL 2 00051 #define MAX_REPAIR_TTL 3 * NET_DIAMETER / 10 00052 #define MY_ROUTE_TIMEOUT 2 * ACTIVE_ROUTE_TIMEOUT 00053 #define NET_DIAMETER 35 00054 #define NET_TRAVERSAL_TIME 2 * NODE_TRAVERSAL_TIME * NET_DIAMETER 00055 #define NEXT_HOP_WAIT NODE_TRAVERSAL_TIME + 10 00056 #define NODE_TRAVERSAL_TIME 40 00057 #define PATH_DISCOVERY_TIME 2 * NET_TRAVERSAL_TIME 00058 #define RERR_RATELIMIT 10 00059 #define RING_TRAVERSAL_TIME 2 * NODE_TRAVERSAL_TIME * (TTL_VALUE + TIMEOUT_BUFFER) 00060 #define RREQ_RETRIES 2 00061 #define RREQ_RATELIMIT 10 00062 #define TIMEOUT_BUFFER 2 00063 #define TTL_INCREMENT 2 00064 #define TTL_THRESHOLD 7 00065 00066 #ifndef NS_PORT 00067 /* Dynamic configuration values */ 00068 extern int active_route_timeout; 00069 extern int ttl_start; 00070 extern int delete_period; 00071 #endif 00072 00073 #endif /* _PARAMS_H */