mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-14 12:16:21 +08:00
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:
@@ -51,6 +51,7 @@ typedef enum {
|
||||
MEMP_NETBUF,
|
||||
MEMP_NETCONN,
|
||||
MEMP_TCPIP_MSG,
|
||||
MEMP_TCPIP_MSG_INPUT,
|
||||
#if ARP_QUEUEING
|
||||
MEMP_ARP_QUEUE,
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user