I tried to compile it on macOS => light_alloc.c:50:2: error: unknown type name 'ssize_t'; did you mean 'size_t'? ~~>ssize_t<~~ block_body_size;
When I replaced ssize_t with int (First results of google did not show right file to include, so just to try if there were any other errors and to try their tests) it seemed to be working also on macOS, although there was an error in some tests: (/test_histogram.test mpeg-ts.pcapng => ERROR at light_io.c::light_read_from_path::38: -930238288 <= 0, ...output omitted...)
I need to save captured traffic into a file and to either add custom block with information about each packet or extend each block (packet) with custom options. It seems I will be able to do that with that library.