RDATA lowercase: Converting in packet parsing + zone load.
Converting to lowercase when saving to zone proved insufficient, because case-insensitive comparison of RDATA would be needed in some scenarios - e.g. in IXFR (SOA replacement) and DDNS processing. Moved the conversion to packet parsing - all dnames in RDATA are converted to lowercase when parsed from wire. RDATA parsed from zone file are converted there (in scanner_process()). Later the conversion may be moved to a lower level of parsing (and with some option to turn it on/off). QNAME is unaffected by this change.
Showing
- Knot.files 1 addition, 0 deletionsKnot.files
- src/knot/zone/contents.c 5 additions, 78 deletionssrc/knot/zone/contents.c
- src/knot/zone/zonefile.c 41 additions, 1 deletionsrc/knot/zone/zonefile.c
- src/libknot/packet/rrset-wire.c 13 additions, 18 deletionssrc/libknot/packet/rrset-wire.c
- src/libknot/rrtype/naptr.h 56 additions, 0 deletionssrc/libknot/rrtype/naptr.h
Please register or sign in to comment