mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
6LoWPAN: The original, Contiki-based design used only a single buffer for reassemblying larger packets. This could be a problem issue for hub configurations which really need the capability concurrently reassemble multiple incoming streams concurrently. These was also a design issue in that the reassembly buffer could be corrupted by outgoing packets. The design was extended to support multiple reassembly buffers, each associated with the reassembly tag and source address. This assures that there can be be no corruption of the reassembly once it has started.
This commit is contained in:
@@ -447,7 +447,6 @@ uint16_t devif_conn_event(FAR struct net_driver_s *dev, void *pvconn,
|
||||
* beginning of the list (which will be ignored on this pass)
|
||||
*/
|
||||
|
||||
ninfo("Call event=%p with flags=%04x\n", list->event, flags);
|
||||
flags = list->event(dev, pvconn, list->priv, flags);
|
||||
}
|
||||
|
||||
@@ -511,7 +510,6 @@ uint16_t devif_dev_event(FAR struct net_driver_s *dev, void *pvconn,
|
||||
* beginning of the list (which will be ignored on this pass)
|
||||
*/
|
||||
|
||||
ninfo("Call event=%p with flags=%04x\n", cb->event, flags);
|
||||
flags = cb->event(dev, pvconn, cb->priv, flags);
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
void devif_send(struct net_driver_s *dev, const void *buf, int len)
|
||||
{
|
||||
DEBUGASSERT(dev && len > 0 && len < NET_DEV_MTU(dev));
|
||||
DEBUGASSERT(dev != NULL && len > 0 && len < NET_DEV_MTU(dev));
|
||||
|
||||
memcpy(dev->d_appdata, buf, len);
|
||||
dev->d_sndlen = len;
|
||||
|
||||
Reference in New Issue
Block a user