Accepted patch #5493 IP frag/reass config item tweak.

This commit is contained in:
christiaans
2006-11-27 14:48:21 +00:00
parent 976bce4c7f
commit b4f1deaa46
4 changed files with 23 additions and 15 deletions

View File

@@ -39,19 +39,6 @@
#include "lwip/netif.h"
#include "lwip/ip_addr.h"
/* IP reassemly timer interval in milliseconds */
#define IP_REASS_INTERVAL 1000
/* IP reassemly default age in seconds */
#ifndef IP_REASS_MAXAGE
#define IP_REASS_MAXAGE 3
#endif
/* IP reassembly buffer size (minus IP header) */
#ifndef IP_REASS_BUFSIZE
#define IP_REASS_BUFSIZE 5760
#endif
void ip_frag_init(void);
void ip_reass_tmr(void);
struct pbuf * ip_reass(struct pbuf *p);

View File

@@ -216,6 +216,21 @@ a lot of data that needs to be copied, this should be set high. */
#define IP_FRAG 1
#endif
/* IP reassemly default age in seconds */
#ifndef IP_REASS_MAXAGE
#define IP_REASS_MAXAGE 3
#endif
/* IP reassembly buffer size (minus IP header) */
#ifndef IP_REASS_BUFSIZE
#define IP_REASS_BUFSIZE 5760
#endif
/* Assumed max MTU on any interface for IP frag buffer */
#ifndef IP_FRAG_MAX_MTU
#define IP_FRAG_MAX_MTU 1500
#endif
/** Global default value for Time To Live used by transport layers. */
#ifndef IP_DEFAULT_TTL
#define IP_DEFAULT_TTL 255