dname - propose a refactoring scheme
Overview (phase 1)
- struct knot_dname should be just pointer to memory
- when processing, there should be a function that just checks the sanity of the name, things like:
- length, label count
- weird characters perhaps?
- label stack should disappear, it is similarly easy to just jump labels
- size is not necessary as there is usually no need to copy the dname as whole and even if it is:
- is is not linear with compression, so should be copied by labels
- sanitized names are FQDN and are guaranteed to end with zero label