Check that LWIP_NETIF_TX_SINGLE_PBUF works (in debug mode only)

This commit is contained in:
goldsimon 2010-03-06 12:15:47 +00:00
parent 5196e5ba4f
commit 8a75717dc6
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ low_level_output(struct netif *netif, struct pbuf *p)
unsigned char *ptr;
struct eth_hdr *ethhdr;
#if defined(LWIP_DEBUG) && LWIP_NETIF_TX_SINGLE_PBUF
LWIP_ASSERT("p->next == NULL && p->len == p->tot_len", p->next == NULL && p->len == p->tot_len);
#endif
/* initiate transfer(); */
if (p->tot_len >= sizeof(buffer)) {
LINK_STATS_INC(link.lenerr);