miekg/dns — pull request #62 by axaxs (2013-12-06 03:24:20+00:00)
Title: Revert type additions, allow for all custom types, add test for TYPE6553...

Removed previous Type65534 entries as doing it this way would necessitate adding every single reserved type. The initial problem didn't lay in the TYPE65534 record but the rrsig of it, as TYPE65534 is/was not a type. I fixed the problem there instead, using methods similar to those already in use.
The copy function wasn't making an actual copy in some instances, as slices are really structs of pointers, so pointers were being passed around. I've changed every copy method containing slices to make an actual copy. Did not measure performance of this change. I'll profile and find hotspots at a later time.
Lastly, added a GENERIC rr type so that a raw RR could be created. This could come in handy down the line, but for now used it to create a TYPE65334 record for testing and verification. If you think it's a bad idea, feel free to reject.
Thank you.