Reduce code size: don't include code in those files if IP_FRAG == 0 and IP_REASSEMBLY == 0
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#if (IP_FRAG || IP_REASSEMBLY)
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "lwip/opt.h"
|
||||
@@ -386,3 +388,5 @@ ip_frag(struct pbuf *p, struct netif *netif, struct ip_addr *dest)
|
||||
snmp_inc_ipfragoks();
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
#endif /* IP_FRAG || IP_REASSEMBLY */
|
||||
|
||||
Reference in New Issue
Block a user