Skip to content

Commit

Permalink
fix bug: init pkt type table correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxingwu committed Oct 23, 2017
1 parent 1398ca8 commit 5666a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 5666a66

Please sign in to comment.