LibtraceTeam / libtrace

C Library for working with network packet traces
GNU Lesser General Public License v3.0
155 stars 50 forks source link

vDAG support #170

Closed jacobvw closed 3 years ago

jacobvw commented 3 years ago

This adds support for vDAG reading/writing. The stream is opened in reverse mode when trying to TX on a RX stream of when trying to RX on a TX stream, this is a requirement when using a vDAG.

Replaces dag_tx_stream_commit_bytes64() with dag_tx_stream_commit_records64(). Both behave the same when writing to a DAG device but dag_tx_stream_commit_records64() I could only get dag_tx_stream_commit_records64() working when using a vDAG.