5 Commits

Author SHA1 Message Date
86317683bd
(deps) update hexhex to v1.1 2022-08-17 22:58:29 +02:00
623a82c2fe (deps) replace hexyl with hexhex (#18)
Since we don't want to add too many dependencies for now, use our own
small hexdump lib `hexhex` instead of `hexyl`.

Reviewed-on: #18
Co-authored-by: ddidderr <ddidderr@paul.network>
Co-committed-by: ddidderr <ddidderr@paul.network>
2022-05-08 14:39:29 +02:00
0dc41ef845
(tests) Implement tests for DNS header parsing
* implemented 3 tests
  * valid opcodes
  * invalid opcodes
  * header too short
* fixed byteorder and bit shifting for flags
* added hexdump for main function for testing purposes
2022-04-06 20:19:41 +02:00
812264e2ab
(chore) replace flume dependency with std::sync::mpsc (#12)
Co-authored-by: ddidderr <ddidderr@paul.network>
Reviewed-on: #12
2022-04-06 20:17:48 +02:00
71223309d7 Code for parsing headers added. 2022-03-13 21:56:17 +01:00