Skip to content

Commit

Permalink
lwip: Drop packets larger than MTU
Browse files Browse the repository at this point in the history
  • Loading branch information
espxiehang committed Jan 13, 2020
1 parent 6a587ae commit 39f3385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ipv4/ip4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,8 @@ ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *d
if (netif->mtu && (p->tot_len > netif->mtu)) {
return ip4_frag(p, netif, dest);
}
#else
LWIP_ERROR("ip4_output_if: Packets larger than MTU, discarded!!!",!(netif->mtu && p->tot_len > netif->mtu),return ERR_IF;);
#endif /* IP_FRAG */

LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n"));
Expand Down

0 comments on commit 39f3385

Please sign in to comment.