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> {
13391339 }
13401340 }
13411341
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.
13421347 #[ cfg( feature = "proto-ipv4-fragmentation" ) ]
13431348 fn ipv4_egress < D > ( & mut self , device : & mut D ) -> Result < bool >
13441349 where
@@ -1372,6 +1377,11 @@ impl<'a> Interface<'a> {
13721377 }
13731378 }
13741379
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.
13751385 #[ cfg( feature = "proto-sixlowpan-fragmentation" ) ]
13761386 fn sixlowpan_egress < D > ( & mut self , device : & mut D ) -> Result < bool >
13771387 where
@@ -1392,10 +1402,6 @@ impl<'a> Interface<'a> {
13921402 ..
13931403 } = & self . out_packets . sixlowpan_out_packet ;
13941404
1395- if * packet_len == 0 {
1396- return Ok ( false ) ;
1397- }
1398-
13991405 if * packet_len > * sent_bytes {
14001406 match device. transmit ( ) {
14011407 Some ( tx_token) => self . inner . dispatch_ieee802154_out_packet (
You can’t perform that action at this time.
0 commit comments