Renames the DNS header fields and adds a new `enum DNSMessageType`.
Resolves#14
Co-authored-by: mice_on_drugs <tobi@ottenweller.net>
Reviewed-on: #19
Co-authored-by: ddidderr <ddidderr@paul.network>
Co-committed-by: ddidderr <ddidderr@paul.network>
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>
* 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
and use the same names as the RFC.
Also added some RFC documentation as doc comments in the code.
Co-authored-by: ddidderr <ddidderr@paul.network>
Reviewed-on: #13