dpdkcap / dpdkcap

DPDK-based packet capture tool
Other
223 stars 114 forks source link

file size without compression fix #50

Closed kunschikov closed 1 year ago

kunschikov commented 3 years ago

The return value of file_write_func() is being treated as bytes in every place of core_write.c. Therefore every implementation of this interface should return bytes, not block count. It can be achieved in other way: by multiplying count of blocks which is 'retval' with their size which is 'len'.