Changeset 64d9819 in rtems-lwip


Ignore:
Timestamp:
03/02/23 22:30:10 (12 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
8dfd35f
Parents:
cd9d9e7
git-author:
Kinsey Moore <kinsey.moore@…> (03/02/23 22:30:10)
git-committer:
Joel Sherrill <joel@…> (03/08/23 20:58:32)
Message:

lwip/api: Notify about dropped packets

The receive UDP and raw mailboxes will silently drop packets once the
mailbox is full. This provides a debug message if debugging is enabled
when this is the case to direct the user toward a solution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lwip/src/api/api_msg.c

    rcd9d9e7 r64d9819  
    192192      len = q->tot_len;
    193193      if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) {
     194#ifdef __rtems__
     195        LWIP_DEBUGF(API_MSG_DEBUG | LWIP_DBG_LEVEL_WARNING,
     196          ("recv_raw: dropping packet\n"));
     197#endif
    194198        netbuf_delete(buf);
    195199        return 0;
     
    271275  len = p->tot_len;
    272276  if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) {
     277#ifdef __rtems__
     278        LWIP_DEBUGF(API_MSG_DEBUG | LWIP_DBG_LEVEL_WARNING,
     279          ("recv_udp: dropping packet\n"));
     280#endif
    273281    netbuf_delete(buf);
    274282    return;
Note: See TracChangeset for help on using the changeset viewer.