ref: 87b61fddf25d5a3278509e636ab7328ac582d9a0
parent: 278caaf11931ec0c71fc13fd4c4794fae325c404
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon May 22 15:54:56 EDT 2023
ip/ppp: and its GONE. blocklists are completely useless for the ppp code and therefore: GONE. custom checksum code (just use libip's version): GONE. custom block allocator is also completely avoidable. for the data receive and transmit path, we can just reuse the same buffer without ever needing do free and re-allocate. for this, i made freeb() check that the data area is next to the Block header, if its not i consider it a "static" buffer that should not be freed. Provide resetb() to re-initialize a buffer. so yeah, custom block allocator: GONE. most of the block functions where not needed at all. now we only have: allocb(), resetb(), freeb() and BLEN() and BALLOC() macros. the rest is: GONE. putframe() used to always COPY all the data for no reason... like why where they even using Block buffers then? .... FIXED.