On Thu, Dec 16, 2021 at 02:25:47PM +0200, Ilpo Järvinen wrote:
On Mon, 6 Dec 2021, Ricardo Martinez wrote:
quoted
+ if (multi_packet == 1)
+ return actual_count;
+ else if (multi_packet == i + 1)
On top of that redundant 'else' here.
quoted
+ return count;
+ }
I'd recommend renaming variables to make it clearer what they count:
- count -> bytes
- actual_count -> actual_bytes
- multi_packet -> packets
--
With Best Regards,
Andy Shevchenko