summaryrefslogtreecommitdiff
path: root/nuttx/include/net/uip/uipopt.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-07 22:54:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-11-07 22:54:51 +0000
commitfae6085d5734cb000bcd6a40eb0b5bd369772d4f (patch)
tree22b9afe6128acf0e2e33e1ce70f10724e7cc914c /nuttx/include/net/uip/uipopt.h
parenta97e1cc4d1195f56bc10acbcd469bb71e016476c (diff)
downloadpx4-nuttx-fae6085d5734cb000bcd6a40eb0b5bd369772d4f.tar.gz
px4-nuttx-fae6085d5734cb000bcd6a40eb0b5bd369772d4f.tar.bz2
px4-nuttx-fae6085d5734cb000bcd6a40eb0b5bd369772d4f.zip
Handle varialble length polling intervals; fix bug of last checkin
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@376 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net/uip/uipopt.h')
-rw-r--r--nuttx/include/net/uip/uipopt.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/include/net/uip/uipopt.h b/nuttx/include/net/uip/uipopt.h
index 170be621c..3a3fc68f2 100644
--- a/nuttx/include/net/uip/uipopt.h
+++ b/nuttx/include/net/uip/uipopt.h
@@ -108,10 +108,11 @@
#define UIP_REASSEMBLY 0
/* The maximum time an IP fragment should wait in the reassembly
- * buffer before it is dropped.
+ * buffer before it is dropped. Units are deci-seconds, the range
+ * of the timer is 8-bits.
*/
-#define UIP_REASS_MAXAGE 40
+#define UIP_REASS_MAXAGE (20*10) /* 20 seconds */
/* UDP configuration options */
@@ -218,10 +219,10 @@
/* How long a connection should stay in the TIME_WAIT state.
*
* This configiration option has no real implication, and it should be
- * left untouched.
+ * left untouched. Units: half second.
*/
-#define UIP_TIME_WAIT_TIMEOUT 120
+#define UIP_TIME_WAIT_TIMEOUT (60*2)
/* ARP configuration options */