Add uip_clear_buf() macro and replace all instances of uip_len = 0; with it
This commit is contained in:
parent
cb09689846
commit
1784338b2e
30 changed files with 92 additions and 84 deletions
|
@ -370,7 +370,7 @@ PROCESS_THREAD(slip_process, ev, data)
|
|||
tcpip_input();
|
||||
}
|
||||
} else {
|
||||
uip_len = 0;
|
||||
uip_clear_buf();
|
||||
SLIP_STATISTICS(slip_ip_drop++);
|
||||
}
|
||||
#else /* NETSTACK_CONF_WITH_IPV6 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue