aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/testdata/message
AgeCommit message (Collapse)Author
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
2025-01-17lib/dns: detect invalid header earlierShulhan
Previously, we unpack the header and then question without detecting whether the header itself is valid or not, for example the op-code, the response code. This cause the unpacking question return an error like label length overflow at index xxx One of the case is when someone sent random or HTTP request to DoT port.
2025-01-15lib/dns: fix unpacking resource data on HTTPS recordShulhan
Instead of passing the whole packet, pass the packet for unpacking target name only and rdata for unpacking the SVCB HTTPS record.
2024-04-12lib/dns: fix packing and unpacking OPT recordShulhan
The RDATA in OPT records can contains zero or _more_ options. Previously, we only handle unpacking and packing one option, now we handle multiple options.
2024-04-03lib/dns: fix unpacking ipv4hint on SVCB recordShulhan
Somehow the test passed on my main machine, but failed on my laptop. Weird.
2024-03-26lib/dns: implements RFC 9460 for SVCB RR and HTTPS RRShulhan
2023-08-06lib/dns: add method AddAuthority to MessageShulhan
The AddAuthority add the rr to list of Authority. Calling this method mark the message as answer, instead of query. If the rr is SOA, it will replace the existing record if exist and set the flag authoritative answer (IsAA) in header to true. If the rr is NS, it will be added only if its not exist. It will return an error if the rr type is not SOA or NS or the size of records in Authority is full, maximum four records.