From 5666a66fcb07dbea1592cae249ac2d62e4e6092d Mon Sep 17 00:00:00 2001 From: yangxingwu Date: Mon, 23 Oct 2017 11:12:27 +0800 Subject: [PATCH] fix bug: init pkt type table correctly --- src/netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif.c b/src/netif.c index 9ea1859a6..4a11bc48e 100644 --- a/src/netif.c +++ b/src/netif.c @@ -864,7 +864,7 @@ static inline int pkt_type_tab_hashkey(uint16_t type) static inline void netif_pkt_type_tab_init(void) { int i; - for (i = 0; i < NETIF_PKT_TYPE_TABLE_MASK; i++) + for (i = 0; i < NETIF_PKT_TYPE_TABLE_BUCKETS; i++) INIT_LIST_HEAD(&pkt_type_tab[i]); }