]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Refactor OPT handling code into OPT record class. (#520)
authorBrian Wellington <bwelling@xbill.org>
Sat, 27 Jun 2020 01:55:53 +0000 (18:55 -0700)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2020 01:55:53 +0000 (18:55 -0700)
commit1c1db38fe2d4877d2d3ea86130310dc634223355
treed91adb36f51c78eb00712e8f98a375ae9a024059
parent53e2a45f641ac72ec9cf476116ead69292828c4a
Refactor OPT handling code into OPT record class. (#520)

* Create an OPT record class.

* Move OPT logic to one place.

* Store the OPT record on the message object.

This also adds a Renderer.add_rdata() method.

* Add Rdataset.rdata_to_wire() helper.

* Fix conflicts; simplify.

* Fix typo.

* style

* Add a trivial to_text so that repr() works.

* Add _parse_special_rr_header

* More OPT checking.

Pass the name to _parse_rr_header and _parse_special_rr_header, and
check that the OPT record has the root name.
dns/message.py
dns/rdtypes/ANY/OPT.py [new file with mode: 0644]
dns/renderer.py
dns/update.py