Added distinct memp (MEMP_TCPIP_MSG_INPUT) for input packets to prevent

floods from consuming all of MEMP_TCPIP_MSG and starving other message types.
This commit is contained in:
marcbou
2007-08-16 19:49:08 +00:00
parent 58bfb0458e
commit 1b98df4a0d
4 changed files with 35 additions and 29 deletions

View File

@@ -51,6 +51,7 @@ typedef enum {
MEMP_NETBUF,
MEMP_NETCONN,
MEMP_TCPIP_MSG,
MEMP_TCPIP_MSG_INPUT,
#if ARP_QUEUEING
MEMP_ARP_QUEUE,
#endif

View File

@@ -66,6 +66,7 @@ err_t tcpip_apimsg_lock(struct api_msg *apimsg);
#if ETHARP_TCPIP_INPUT
err_t tcpip_input(struct pbuf *p, struct netif *inp);
err_t tcpip_input_callback(struct pbuf *p, struct netif *inp, err_t (*f)(struct pbuf *, struct netif *));
#endif /* ETHARP_TCPIP_INPUT */
#if ETHARP_TCPIP_ETHINPUT