1 // Code generated by "go run duplicate_generate.go"; DO NOT EDIT.
5 // isDuplicate() functions
7 func (r1 *A) isDuplicate(_r2 RR) bool {
13 if !r1.A.Equal(r2.A) {
19 func (r1 *AAAA) isDuplicate(_r2 RR) bool {
25 if !r1.AAAA.Equal(r2.AAAA) {
31 func (r1 *AFSDB) isDuplicate(_r2 RR) bool {
32 r2, ok := _r2.(*AFSDB)
37 if r1.Subtype != r2.Subtype {
40 if !isDuplicateName(r1.Hostname, r2.Hostname) {
46 func (r1 *ANY) isDuplicate(_r2 RR) bool {
55 func (r1 *AVC) isDuplicate(_r2 RR) bool {
61 if len(r1.Txt) != len(r2.Txt) {
64 for i := 0; i < len(r1.Txt); i++ {
65 if r1.Txt[i] != r2.Txt[i] {
72 func (r1 *CAA) isDuplicate(_r2 RR) bool {
78 if r1.Flag != r2.Flag {
84 if r1.Value != r2.Value {
90 func (r1 *CERT) isDuplicate(_r2 RR) bool {
96 if r1.Type != r2.Type {
99 if r1.KeyTag != r2.KeyTag {
102 if r1.Algorithm != r2.Algorithm {
105 if r1.Certificate != r2.Certificate {
111 func (r1 *CNAME) isDuplicate(_r2 RR) bool {
112 r2, ok := _r2.(*CNAME)
117 if !isDuplicateName(r1.Target, r2.Target) {
123 func (r1 *CSYNC) isDuplicate(_r2 RR) bool {
124 r2, ok := _r2.(*CSYNC)
129 if r1.Serial != r2.Serial {
132 if r1.Flags != r2.Flags {
135 if len(r1.TypeBitMap) != len(r2.TypeBitMap) {
138 for i := 0; i < len(r1.TypeBitMap); i++ {
139 if r1.TypeBitMap[i] != r2.TypeBitMap[i] {
146 func (r1 *DHCID) isDuplicate(_r2 RR) bool {
147 r2, ok := _r2.(*DHCID)
152 if r1.Digest != r2.Digest {
158 func (r1 *DNAME) isDuplicate(_r2 RR) bool {
159 r2, ok := _r2.(*DNAME)
164 if !isDuplicateName(r1.Target, r2.Target) {
170 func (r1 *DNSKEY) isDuplicate(_r2 RR) bool {
171 r2, ok := _r2.(*DNSKEY)
176 if r1.Flags != r2.Flags {
179 if r1.Protocol != r2.Protocol {
182 if r1.Algorithm != r2.Algorithm {
185 if r1.PublicKey != r2.PublicKey {
191 func (r1 *DS) isDuplicate(_r2 RR) bool {
197 if r1.KeyTag != r2.KeyTag {
200 if r1.Algorithm != r2.Algorithm {
203 if r1.DigestType != r2.DigestType {
206 if r1.Digest != r2.Digest {
212 func (r1 *EID) isDuplicate(_r2 RR) bool {
218 if r1.Endpoint != r2.Endpoint {
224 func (r1 *EUI48) isDuplicate(_r2 RR) bool {
225 r2, ok := _r2.(*EUI48)
230 if r1.Address != r2.Address {
236 func (r1 *EUI64) isDuplicate(_r2 RR) bool {
237 r2, ok := _r2.(*EUI64)
242 if r1.Address != r2.Address {
248 func (r1 *GID) isDuplicate(_r2 RR) bool {
254 if r1.Gid != r2.Gid {
260 func (r1 *GPOS) isDuplicate(_r2 RR) bool {
261 r2, ok := _r2.(*GPOS)
266 if r1.Longitude != r2.Longitude {
269 if r1.Latitude != r2.Latitude {
272 if r1.Altitude != r2.Altitude {
278 func (r1 *HINFO) isDuplicate(_r2 RR) bool {
279 r2, ok := _r2.(*HINFO)
284 if r1.Cpu != r2.Cpu {
293 func (r1 *HIP) isDuplicate(_r2 RR) bool {
299 if r1.HitLength != r2.HitLength {
302 if r1.PublicKeyAlgorithm != r2.PublicKeyAlgorithm {
305 if r1.PublicKeyLength != r2.PublicKeyLength {
308 if r1.Hit != r2.Hit {
311 if r1.PublicKey != r2.PublicKey {
314 if len(r1.RendezvousServers) != len(r2.RendezvousServers) {
317 for i := 0; i < len(r1.RendezvousServers); i++ {
318 if !isDuplicateName(r1.RendezvousServers[i], r2.RendezvousServers[i]) {
325 func (r1 *KX) isDuplicate(_r2 RR) bool {
331 if r1.Preference != r2.Preference {
334 if !isDuplicateName(r1.Exchanger, r2.Exchanger) {
340 func (r1 *L32) isDuplicate(_r2 RR) bool {
346 if r1.Preference != r2.Preference {
349 if !r1.Locator32.Equal(r2.Locator32) {
355 func (r1 *L64) isDuplicate(_r2 RR) bool {
361 if r1.Preference != r2.Preference {
364 if r1.Locator64 != r2.Locator64 {
370 func (r1 *LOC) isDuplicate(_r2 RR) bool {
376 if r1.Version != r2.Version {
379 if r1.Size != r2.Size {
382 if r1.HorizPre != r2.HorizPre {
385 if r1.VertPre != r2.VertPre {
388 if r1.Latitude != r2.Latitude {
391 if r1.Longitude != r2.Longitude {
394 if r1.Altitude != r2.Altitude {
400 func (r1 *LP) isDuplicate(_r2 RR) bool {
406 if r1.Preference != r2.Preference {
409 if !isDuplicateName(r1.Fqdn, r2.Fqdn) {
415 func (r1 *MB) isDuplicate(_r2 RR) bool {
421 if !isDuplicateName(r1.Mb, r2.Mb) {
427 func (r1 *MD) isDuplicate(_r2 RR) bool {
433 if !isDuplicateName(r1.Md, r2.Md) {
439 func (r1 *MF) isDuplicate(_r2 RR) bool {
445 if !isDuplicateName(r1.Mf, r2.Mf) {
451 func (r1 *MG) isDuplicate(_r2 RR) bool {
457 if !isDuplicateName(r1.Mg, r2.Mg) {
463 func (r1 *MINFO) isDuplicate(_r2 RR) bool {
464 r2, ok := _r2.(*MINFO)
469 if !isDuplicateName(r1.Rmail, r2.Rmail) {
472 if !isDuplicateName(r1.Email, r2.Email) {
478 func (r1 *MR) isDuplicate(_r2 RR) bool {
484 if !isDuplicateName(r1.Mr, r2.Mr) {
490 func (r1 *MX) isDuplicate(_r2 RR) bool {
496 if r1.Preference != r2.Preference {
499 if !isDuplicateName(r1.Mx, r2.Mx) {
505 func (r1 *NAPTR) isDuplicate(_r2 RR) bool {
506 r2, ok := _r2.(*NAPTR)
511 if r1.Order != r2.Order {
514 if r1.Preference != r2.Preference {
517 if r1.Flags != r2.Flags {
520 if r1.Service != r2.Service {
523 if r1.Regexp != r2.Regexp {
526 if !isDuplicateName(r1.Replacement, r2.Replacement) {
532 func (r1 *NID) isDuplicate(_r2 RR) bool {
538 if r1.Preference != r2.Preference {
541 if r1.NodeID != r2.NodeID {
547 func (r1 *NIMLOC) isDuplicate(_r2 RR) bool {
548 r2, ok := _r2.(*NIMLOC)
553 if r1.Locator != r2.Locator {
559 func (r1 *NINFO) isDuplicate(_r2 RR) bool {
560 r2, ok := _r2.(*NINFO)
565 if len(r1.ZSData) != len(r2.ZSData) {
568 for i := 0; i < len(r1.ZSData); i++ {
569 if r1.ZSData[i] != r2.ZSData[i] {
576 func (r1 *NS) isDuplicate(_r2 RR) bool {
582 if !isDuplicateName(r1.Ns, r2.Ns) {
588 func (r1 *NSAPPTR) isDuplicate(_r2 RR) bool {
589 r2, ok := _r2.(*NSAPPTR)
594 if !isDuplicateName(r1.Ptr, r2.Ptr) {
600 func (r1 *NSEC) isDuplicate(_r2 RR) bool {
601 r2, ok := _r2.(*NSEC)
606 if !isDuplicateName(r1.NextDomain, r2.NextDomain) {
609 if len(r1.TypeBitMap) != len(r2.TypeBitMap) {
612 for i := 0; i < len(r1.TypeBitMap); i++ {
613 if r1.TypeBitMap[i] != r2.TypeBitMap[i] {
620 func (r1 *NSEC3) isDuplicate(_r2 RR) bool {
621 r2, ok := _r2.(*NSEC3)
626 if r1.Hash != r2.Hash {
629 if r1.Flags != r2.Flags {
632 if r1.Iterations != r2.Iterations {
635 if r1.SaltLength != r2.SaltLength {
638 if r1.Salt != r2.Salt {
641 if r1.HashLength != r2.HashLength {
644 if r1.NextDomain != r2.NextDomain {
647 if len(r1.TypeBitMap) != len(r2.TypeBitMap) {
650 for i := 0; i < len(r1.TypeBitMap); i++ {
651 if r1.TypeBitMap[i] != r2.TypeBitMap[i] {
658 func (r1 *NSEC3PARAM) isDuplicate(_r2 RR) bool {
659 r2, ok := _r2.(*NSEC3PARAM)
664 if r1.Hash != r2.Hash {
667 if r1.Flags != r2.Flags {
670 if r1.Iterations != r2.Iterations {
673 if r1.SaltLength != r2.SaltLength {
676 if r1.Salt != r2.Salt {
682 func (r1 *NULL) isDuplicate(_r2 RR) bool {
683 r2, ok := _r2.(*NULL)
688 if r1.Data != r2.Data {
694 func (r1 *OPENPGPKEY) isDuplicate(_r2 RR) bool {
695 r2, ok := _r2.(*OPENPGPKEY)
700 if r1.PublicKey != r2.PublicKey {
706 func (r1 *PTR) isDuplicate(_r2 RR) bool {
712 if !isDuplicateName(r1.Ptr, r2.Ptr) {
718 func (r1 *PX) isDuplicate(_r2 RR) bool {
724 if r1.Preference != r2.Preference {
727 if !isDuplicateName(r1.Map822, r2.Map822) {
730 if !isDuplicateName(r1.Mapx400, r2.Mapx400) {
736 func (r1 *RFC3597) isDuplicate(_r2 RR) bool {
737 r2, ok := _r2.(*RFC3597)
742 if r1.Rdata != r2.Rdata {
748 func (r1 *RKEY) isDuplicate(_r2 RR) bool {
749 r2, ok := _r2.(*RKEY)
754 if r1.Flags != r2.Flags {
757 if r1.Protocol != r2.Protocol {
760 if r1.Algorithm != r2.Algorithm {
763 if r1.PublicKey != r2.PublicKey {
769 func (r1 *RP) isDuplicate(_r2 RR) bool {
775 if !isDuplicateName(r1.Mbox, r2.Mbox) {
778 if !isDuplicateName(r1.Txt, r2.Txt) {
784 func (r1 *RRSIG) isDuplicate(_r2 RR) bool {
785 r2, ok := _r2.(*RRSIG)
790 if r1.TypeCovered != r2.TypeCovered {
793 if r1.Algorithm != r2.Algorithm {
796 if r1.Labels != r2.Labels {
799 if r1.OrigTtl != r2.OrigTtl {
802 if r1.Expiration != r2.Expiration {
805 if r1.Inception != r2.Inception {
808 if r1.KeyTag != r2.KeyTag {
811 if !isDuplicateName(r1.SignerName, r2.SignerName) {
814 if r1.Signature != r2.Signature {
820 func (r1 *RT) isDuplicate(_r2 RR) bool {
826 if r1.Preference != r2.Preference {
829 if !isDuplicateName(r1.Host, r2.Host) {
835 func (r1 *SMIMEA) isDuplicate(_r2 RR) bool {
836 r2, ok := _r2.(*SMIMEA)
841 if r1.Usage != r2.Usage {
844 if r1.Selector != r2.Selector {
847 if r1.MatchingType != r2.MatchingType {
850 if r1.Certificate != r2.Certificate {
856 func (r1 *SOA) isDuplicate(_r2 RR) bool {
862 if !isDuplicateName(r1.Ns, r2.Ns) {
865 if !isDuplicateName(r1.Mbox, r2.Mbox) {
868 if r1.Serial != r2.Serial {
871 if r1.Refresh != r2.Refresh {
874 if r1.Retry != r2.Retry {
877 if r1.Expire != r2.Expire {
880 if r1.Minttl != r2.Minttl {
886 func (r1 *SPF) isDuplicate(_r2 RR) bool {
892 if len(r1.Txt) != len(r2.Txt) {
895 for i := 0; i < len(r1.Txt); i++ {
896 if r1.Txt[i] != r2.Txt[i] {
903 func (r1 *SRV) isDuplicate(_r2 RR) bool {
909 if r1.Priority != r2.Priority {
912 if r1.Weight != r2.Weight {
915 if r1.Port != r2.Port {
918 if !isDuplicateName(r1.Target, r2.Target) {
924 func (r1 *SSHFP) isDuplicate(_r2 RR) bool {
925 r2, ok := _r2.(*SSHFP)
930 if r1.Algorithm != r2.Algorithm {
933 if r1.Type != r2.Type {
936 if r1.FingerPrint != r2.FingerPrint {
942 func (r1 *TA) isDuplicate(_r2 RR) bool {
948 if r1.KeyTag != r2.KeyTag {
951 if r1.Algorithm != r2.Algorithm {
954 if r1.DigestType != r2.DigestType {
957 if r1.Digest != r2.Digest {
963 func (r1 *TALINK) isDuplicate(_r2 RR) bool {
964 r2, ok := _r2.(*TALINK)
969 if !isDuplicateName(r1.PreviousName, r2.PreviousName) {
972 if !isDuplicateName(r1.NextName, r2.NextName) {
978 func (r1 *TKEY) isDuplicate(_r2 RR) bool {
979 r2, ok := _r2.(*TKEY)
984 if !isDuplicateName(r1.Algorithm, r2.Algorithm) {
987 if r1.Inception != r2.Inception {
990 if r1.Expiration != r2.Expiration {
993 if r1.Mode != r2.Mode {
996 if r1.Error != r2.Error {
999 if r1.KeySize != r2.KeySize {
1002 if r1.Key != r2.Key {
1005 if r1.OtherLen != r2.OtherLen {
1008 if r1.OtherData != r2.OtherData {
1014 func (r1 *TLSA) isDuplicate(_r2 RR) bool {
1015 r2, ok := _r2.(*TLSA)
1020 if r1.Usage != r2.Usage {
1023 if r1.Selector != r2.Selector {
1026 if r1.MatchingType != r2.MatchingType {
1029 if r1.Certificate != r2.Certificate {
1035 func (r1 *TSIG) isDuplicate(_r2 RR) bool {
1036 r2, ok := _r2.(*TSIG)
1041 if !isDuplicateName(r1.Algorithm, r2.Algorithm) {
1044 if r1.TimeSigned != r2.TimeSigned {
1047 if r1.Fudge != r2.Fudge {
1050 if r1.MACSize != r2.MACSize {
1053 if r1.MAC != r2.MAC {
1056 if r1.OrigId != r2.OrigId {
1059 if r1.Error != r2.Error {
1062 if r1.OtherLen != r2.OtherLen {
1065 if r1.OtherData != r2.OtherData {
1071 func (r1 *TXT) isDuplicate(_r2 RR) bool {
1072 r2, ok := _r2.(*TXT)
1077 if len(r1.Txt) != len(r2.Txt) {
1080 for i := 0; i < len(r1.Txt); i++ {
1081 if r1.Txt[i] != r2.Txt[i] {
1088 func (r1 *UID) isDuplicate(_r2 RR) bool {
1089 r2, ok := _r2.(*UID)
1094 if r1.Uid != r2.Uid {
1100 func (r1 *UINFO) isDuplicate(_r2 RR) bool {
1101 r2, ok := _r2.(*UINFO)
1106 if r1.Uinfo != r2.Uinfo {
1112 func (r1 *URI) isDuplicate(_r2 RR) bool {
1113 r2, ok := _r2.(*URI)
1118 if r1.Priority != r2.Priority {
1121 if r1.Weight != r2.Weight {
1124 if r1.Target != r2.Target {
1130 func (r1 *X25) isDuplicate(_r2 RR) bool {
1131 r2, ok := _r2.(*X25)
1136 if r1.PSDNAddress != r2.PSDNAddress {