Start working on task #14780: Add debug helper asserts to ensure threading/locking requirements are met

This commit is contained in:
Dirk Ziegelmeier
2018-01-02 13:44:38 +01:00
parent 36d160686a
commit b33b3bb8bb
7 changed files with 108 additions and 0 deletions

View File

@@ -422,6 +422,8 @@ ip4_input(struct pbuf *p, struct netif *inp)
int check_ip_src = 1;
#endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP */
LWIP_ASSERT_CORE_LOCKED();
IP_STATS_INC(ip.recv);
MIB2_STATS_INC(mib2.ipinreceives);