File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1339,6 +1339,11 @@ impl<'a> Interface<'a> {
1339
1339
}
1340
1340
}
1341
1341
1342
+ /// Process fragments that still need to be sent for IPv4 packets.
1343
+ ///
1344
+ /// This function returns a boolean value indicating whether any packets were
1345
+ /// processed or emitted, and thus, whether the readiness of any socket might
1346
+ /// have changed.
1342
1347
#[ cfg( feature = "proto-ipv4-fragmentation" ) ]
1343
1348
fn ipv4_egress < D > ( & mut self , device : & mut D ) -> Result < bool >
1344
1349
where
@@ -1372,6 +1377,11 @@ impl<'a> Interface<'a> {
1372
1377
}
1373
1378
}
1374
1379
1380
+ /// Process fragments that still need to be sent for 6LoWPAN packets.
1381
+ ///
1382
+ /// This function returns a boolean value indicating whether any packets were
1383
+ /// processed or emitted, and thus, whether the readiness of any socket might
1384
+ /// have changed.
1375
1385
#[ cfg( feature = "proto-sixlowpan-fragmentation" ) ]
1376
1386
fn sixlowpan_egress < D > ( & mut self , device : & mut D ) -> Result < bool >
1377
1387
where
@@ -1392,10 +1402,6 @@ impl<'a> Interface<'a> {
1392
1402
..
1393
1403
} = & self . out_packets . sixlowpan_out_packet ;
1394
1404
1395
- if * packet_len == 0 {
1396
- return Ok ( false ) ;
1397
- }
1398
-
1399
1405
if * packet_len > * sent_bytes {
1400
1406
match device. transmit ( ) {
1401
1407
Some ( tx_token) => self . inner . dispatch_ieee802154_out_packet (
You can’t perform that action at this time.
0 commit comments