-
Notifications
You must be signed in to change notification settings - Fork 66
/
config.h
83 lines (67 loc) · 1.46 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
* @addtogroup NSTACK_CONFIG
* @{
*/
#pragma once
#define NSTACK_DATAGRAM_SIZE_MAX 4096
#define NSTACK_DATAGRAM_BUF_SIZE 16384
/**
* Periodic IP event tick.
* How often should periodic tasks run.
* This is handled by IP but it's meant to be more generic.
*/
#define NSTACK_PERIODIC_EVENT_SEC 10
/**
* Periodic TCP timer tick. (500 ms)
*/
#define NSTACK_TCP_TIMER_USEC 500000
/**
* ARP Configuration.
* @{
*/
/**
* ARP Cache size.
* The size of ARP cache in entries.
* If ARP runs out of slots it will free the oldest validdynamic entry in
* the cache; if all entries all static and thus there is no more empty
* slots left the ARP insert will fail.
*/
#define NSTACK_ARP_CACHE_SIZE 50
/**
* @}
*/
/*
* @{
* IP Configuration.
*/
/**
* RIB (Routing Information Base) size in the number of entries.
*/
#define NSTACK_IP_RIB_SIZE 5
/**
* Max number of deferred IP packets.
* Maximum number of IP packets waiting for transmission, ie. waiting for ARP
* to provide a destination MAC address.
*/
#define NSTACK_IP_DEFER_MAX 20
/**
* Unreachable destination IP.
* + 0 = Drop silently
* + 1 = Send ICMP Destination host unreachable
*/
#define NSTACK_IP_SEND_HOSTUNREAC 1
/**
* The number of buffers reserved for IP fragment reassembly.
*/
#define NSTACK_IP_FRAGMENT_BUF 4
/**
* IP fragment reassembly timer lower bound [sec].
* The RFC recommends a default value of 15 seconds.
*/
#define NSTACK_IP_FRAGMENT_TLB 15
/**
* @}
*/
/**
* @}
*/