Debian Codegraph @

zcompare.go

raw
1 // Code generated by "go run compare_generate.go"; DO NOT EDIT.
2
3 package dns
4
5 import (
6 "cmp"
7 "slices"
8 "strings"
9 )
10
11 func compare(a, b RR) int {
12 switch x := a.(type) {
13 case *TSIG:
14 return x.compare(b)
15 case *DELEG:
16 return x.compare(b)
17 case *OPT:
18 return x.compare(b)
19 case *NSEC3:
20 return x.compare(b)
21 case *DNSKEY:
22 return x.compare(b)
23 case *DS:
24 return x.compare(b)
25 case *NSEC:
26 return x.compare(b)
27 case *RRSIG:
28 return x.compare(b)
29 case *AAAA:
30 return x.compare(b)
31 case *A:
32 return x.compare(b)
33 case *TXT:
34 return x.compare(b)
35 case *NS:
36 return x.compare(b)
37 case *MX:
38 return x.compare(b)
39 case *CNAME:
40 return x.compare(b)
41 case *NULL:
42 return x.compare(b)
43 case *NXNAME:
44 return x.compare(b)
45 case *HINFO:
46 return x.compare(b)
47 case *MB:
48 return x.compare(b)
49 case *MG:
50 return x.compare(b)
51 case *MINFO:
52 return x.compare(b)
53 case *MR:
54 return x.compare(b)
55 case *MF:
56 return x.compare(b)
57 case *MD:
58 return x.compare(b)
59 case *AFSDB:
60 return x.compare(b)
61 case *X25:
62 return x.compare(b)
63 case *ISDN:
64 return x.compare(b)
65 case *RT:
66 return x.compare(b)
67 case *PTR:
68 return x.compare(b)
69 case *RP:
70 return x.compare(b)
71 case *SOA:
72 return x.compare(b)
73 case *SPF:
74 return x.compare(b)
75 case *AVC:
76 return x.compare(b)
77 case *WALLET:
78 return x.compare(b)
79 case *CLA:
80 return x.compare(b)
81 case *IPN:
82 return x.compare(b)
83 case *SRV:
84 return x.compare(b)
85 case *NAPTR:
86 return x.compare(b)
87 case *CERT:
88 return x.compare(b)
89 case *DNAME:
90 return x.compare(b)
91 case *PX:
92 return x.compare(b)
93 case *GPOS:
94 return x.compare(b)
95 case *LOC:
96 return x.compare(b)
97 case *SIG:
98 return x.compare(b)
99 case *NXT:
100 return x.compare(b)
101 case *DLV:
102 return x.compare(b)
103 case *CDS:
104 return x.compare(b)
105 case *KX:
106 return x.compare(b)
107 case *TA:
108 return x.compare(b)
109 case *TALINK:
110 return x.compare(b)
111 case *SSHFP:
112 return x.compare(b)
113 case *KEY:
114 return x.compare(b)
115 case *CDNSKEY:
116 return x.compare(b)
117 case *RKEY:
118 return x.compare(b)
119 case *NSAPPTR:
120 return x.compare(b)
121 case *NSEC3PARAM:
122 return x.compare(b)
123 case *TKEY:
124 return x.compare(b)
125 case *RFC3597:
126 return x.compare(b)
127 case *URI:
128 return x.compare(b)
129 case *DHCID:
130 return x.compare(b)
131 case *TLSA:
132 return x.compare(b)
133 case *SMIMEA:
134 return x.compare(b)
135 case *HIP:
136 return x.compare(b)
137 case *NINFO:
138 return x.compare(b)
139 case *NID:
140 return x.compare(b)
141 case *L32:
142 return x.compare(b)
143 case *L64:
144 return x.compare(b)
145 case *LP:
146 return x.compare(b)
147 case *EUI48:
148 return x.compare(b)
149 case *EUI64:
150 return x.compare(b)
151 case *CAA:
152 return x.compare(b)
153 case *UID:
154 return x.compare(b)
155 case *GID:
156 return x.compare(b)
157 case *UINFO:
158 return x.compare(b)
159 case *EID:
160 return x.compare(b)
161 case *NIMLOC:
162 return x.compare(b)
163 case *OPENPGPKEY:
164 return x.compare(b)
165 case *CSYNC:
166 return x.compare(b)
167 case *ZONEMD:
168 return x.compare(b)
169 case *RESINFO:
170 return x.compare(b)
171 case *SVCB:
172 return x.compare(b)
173 case *HTTPS:
174 return x.compare(b)
175 case *DELEGPARAM:
176 return x.compare(b)
177 case *DSYNC:
178 return x.compare(b)
179 case *ANY:
180 return x.compare(b)
181 case *AXFR:
182 return x.compare(b)
183 case *IXFR:
184 return x.compare(b)
185 }
186 if x, ok := a.(Comparer); ok {
187 return x.Compare(b)
188 }
189 return 0
190 }
191
192 func (rr *NULL) compare(b RR) (x int) {
193 x = len(rr.Null) - len(b.(*NULL).Null)
194 if x != 0 {
195 if x < 0 {
196 return -1
197 }
198 return 1
199 }
200 x = strings.Compare(rr.Null, b.(*NULL).Null)
201 if x != 0 {
202 if x < 0 {
203 return -1
204 }
205 return 1
206 }
207 return 0
208 }
209
210 func (rr *CNAME) compare(b RR) (x int) {
211 x = comparename(rr.Target, b.(*CNAME).Target)
212 if x != 0 {
213 if x < 0 {
214 return -1
215 }
216 return 1
217 }
218 return 0
219 }
220
221 func (rr *HINFO) compare(b RR) (x int) {
222 x = len(rr.Cpu) - len(b.(*HINFO).Cpu)
223 if x != 0 {
224 if x < 0 {
225 return -1
226 }
227 return 1
228 }
229 x = strings.Compare(rr.Cpu, b.(*HINFO).Cpu)
230 if x != 0 {
231 if x < 0 {
232 return -1
233 }
234 return 1
235 }
236 x = len(rr.Os) - len(b.(*HINFO).Os)
237 if x != 0 {
238 if x < 0 {
239 return -1
240 }
241 return 1
242 }
243 x = strings.Compare(rr.Os, b.(*HINFO).Os)
244 if x != 0 {
245 if x < 0 {
246 return -1
247 }
248 return 1
249 }
250 return 0
251 }
252
253 func (rr *MB) compare(b RR) (x int) {
254 x = comparename(rr.Mb, b.(*MB).Mb)
255 if x != 0 {
256 if x < 0 {
257 return -1
258 }
259 return 1
260 }
261 return 0
262 }
263
264 func (rr *MG) compare(b RR) (x int) {
265 x = comparename(rr.Mg, b.(*MG).Mg)
266 if x != 0 {
267 if x < 0 {
268 return -1
269 }
270 return 1
271 }
272 return 0
273 }
274
275 func (rr *MINFO) compare(b RR) (x int) {
276 x = comparename(rr.Rmail, b.(*MINFO).Rmail)
277 if x != 0 {
278 if x < 0 {
279 return -1
280 }
281 return 1
282 }
283 x = comparename(rr.Email, b.(*MINFO).Email)
284 if x != 0 {
285 if x < 0 {
286 return -1
287 }
288 return 1
289 }
290 return 0
291 }
292
293 func (rr *MR) compare(b RR) (x int) {
294 x = comparename(rr.Mr, b.(*MR).Mr)
295 if x != 0 {
296 if x < 0 {
297 return -1
298 }
299 return 1
300 }
301 return 0
302 }
303
304 func (rr *MF) compare(b RR) (x int) {
305 x = comparename(rr.Mf, b.(*MF).Mf)
306 if x != 0 {
307 if x < 0 {
308 return -1
309 }
310 return 1
311 }
312 return 0
313 }
314
315 func (rr *MD) compare(b RR) (x int) {
316 x = comparename(rr.Md, b.(*MD).Md)
317 if x != 0 {
318 if x < 0 {
319 return -1
320 }
321 return 1
322 }
323 return 0
324 }
325
326 func (rr *MX) compare(b RR) (x int) {
327 x = cmp.Compare(rr.Preference, b.(*MX).Preference)
328 if x != 0 {
329 if x < 0 {
330 return -1
331 }
332 return 1
333 }
334 x = comparename(rr.Mx, b.(*MX).Mx)
335 if x != 0 {
336 if x < 0 {
337 return -1
338 }
339 return 1
340 }
341 return 0
342 }
343
344 func (rr *AFSDB) compare(b RR) (x int) {
345 x = cmp.Compare(rr.Subtype, b.(*AFSDB).Subtype)
346 if x != 0 {
347 if x < 0 {
348 return -1
349 }
350 return 1
351 }
352 x = comparename(rr.Hostname, b.(*AFSDB).Hostname)
353 if x != 0 {
354 if x < 0 {
355 return -1
356 }
357 return 1
358 }
359 return 0
360 }
361
362 func (rr *X25) compare(b RR) (x int) {
363 x = len(rr.PSDNAddress) - len(b.(*X25).PSDNAddress)
364 if x != 0 {
365 if x < 0 {
366 return -1
367 }
368 return 1
369 }
370 x = strings.Compare(rr.PSDNAddress, b.(*X25).PSDNAddress)
371 if x != 0 {
372 if x < 0 {
373 return -1
374 }
375 return 1
376 }
377 return 0
378 }
379
380 func (rr *ISDN) compare(b RR) (x int) {
381 x = len(rr.Address) - len(b.(*ISDN).Address)
382 if x != 0 {
383 if x < 0 {
384 return -1
385 }
386 return 1
387 }
388 x = strings.Compare(rr.Address, b.(*ISDN).Address)
389 if x != 0 {
390 if x < 0 {
391 return -1
392 }
393 return 1
394 }
395 x = len(rr.SubAddress) - len(b.(*ISDN).SubAddress)
396 if x != 0 {
397 if x < 0 {
398 return -1
399 }
400 return 1
401 }
402 x = strings.Compare(rr.SubAddress, b.(*ISDN).SubAddress)
403 if x != 0 {
404 if x < 0 {
405 return -1
406 }
407 return 1
408 }
409 return 0
410 }
411
412 func (rr *RT) compare(b RR) (x int) {
413 x = cmp.Compare(rr.Preference, b.(*RT).Preference)
414 if x != 0 {
415 if x < 0 {
416 return -1
417 }
418 return 1
419 }
420 x = comparename(rr.Host, b.(*RT).Host)
421 if x != 0 {
422 if x < 0 {
423 return -1
424 }
425 return 1
426 }
427 return 0
428 }
429
430 func (rr *NS) compare(b RR) (x int) {
431 x = comparename(rr.Ns, b.(*NS).Ns)
432 if x != 0 {
433 if x < 0 {
434 return -1
435 }
436 return 1
437 }
438 return 0
439 }
440
441 func (rr *PTR) compare(b RR) (x int) {
442 x = comparename(rr.Ptr, b.(*PTR).Ptr)
443 if x != 0 {
444 if x < 0 {
445 return -1
446 }
447 return 1
448 }
449 return 0
450 }
451
452 func (rr *RP) compare(b RR) (x int) {
453 x = comparename(rr.Mbox, b.(*RP).Mbox)
454 if x != 0 {
455 if x < 0 {
456 return -1
457 }
458 return 1
459 }
460 x = comparename(rr.Txt, b.(*RP).Txt)
461 if x != 0 {
462 if x < 0 {
463 return -1
464 }
465 return 1
466 }
467 return 0
468 }
469
470 func (rr *SOA) compare(b RR) (x int) {
471 x = comparename(rr.Ns, b.(*SOA).Ns)
472 if x != 0 {
473 if x < 0 {
474 return -1
475 }
476 return 1
477 }
478 x = comparename(rr.Mbox, b.(*SOA).Mbox)
479 if x != 0 {
480 if x < 0 {
481 return -1
482 }
483 return 1
484 }
485 x = cmp.Compare(rr.Serial, b.(*SOA).Serial)
486 if x != 0 {
487 if x < 0 {
488 return -1
489 }
490 return 1
491 }
492 x = int(rr.Refresh) - int(b.(*SOA).Refresh)
493 if x != 0 {
494 if x < 0 {
495 return -1
496 }
497 return 1
498 }
499 x = int(rr.Retry) - int(b.(*SOA).Retry)
500 if x != 0 {
501 if x < 0 {
502 return -1
503 }
504 return 1
505 }
506 x = int(rr.Expire) - int(b.(*SOA).Expire)
507 if x != 0 {
508 if x < 0 {
509 return -1
510 }
511 return 1
512 }
513 x = int(rr.Minttl) - int(b.(*SOA).Minttl)
514 if x != 0 {
515 if x < 0 {
516 return -1
517 }
518 return 1
519 }
520 return 0
521 }
522
523 func (rr *TXT) compare(b RR) (x int) {
524 j := 0
525 for i := range rr.Txt {
526 if i > j || x != 0 {
527 break
528 }
529 x = len(rr.Txt[i]) - len(b.(*TXT).Txt[j])
530 if x == 0 {
531 x = strings.Compare(rr.Txt[i], b.(*TXT).Txt[j])
532 }
533 j++
534 }
535 if x != 0 {
536 if x < 0 {
537 return -1
538 }
539 return 1
540 }
541 return 0
542 }
543
544 func (rr *IPN) compare(b RR) (x int) {
545 x = cmp.Compare(rr.Node, b.(*IPN).Node)
546 if x != 0 {
547 if x < 0 {
548 return -1
549 }
550 return 1
551 }
552 return 0
553 }
554
555 func (rr *SRV) compare(b RR) (x int) {
556 x = cmp.Compare(rr.Priority, b.(*SRV).Priority)
557 if x != 0 {
558 if x < 0 {
559 return -1
560 }
561 return 1
562 }
563 x = cmp.Compare(rr.Weight, b.(*SRV).Weight)
564 if x != 0 {
565 if x < 0 {
566 return -1
567 }
568 return 1
569 }
570 x = cmp.Compare(rr.Port, b.(*SRV).Port)
571 if x != 0 {
572 if x < 0 {
573 return -1
574 }
575 return 1
576 }
577 x = comparename(rr.Target, b.(*SRV).Target)
578 if x != 0 {
579 if x < 0 {
580 return -1
581 }
582 return 1
583 }
584 return 0
585 }
586
587 func (rr *NAPTR) compare(b RR) (x int) {
588 x = cmp.Compare(rr.Order, b.(*NAPTR).Order)
589 if x != 0 {
590 if x < 0 {
591 return -1
592 }
593 return 1
594 }
595 x = cmp.Compare(rr.Preference, b.(*NAPTR).Preference)
596 if x != 0 {
597 if x < 0 {
598 return -1
599 }
600 return 1
601 }
602 x = len(rr.Flags) - len(b.(*NAPTR).Flags)
603 if x != 0 {
604 if x < 0 {
605 return -1
606 }
607 return 1
608 }
609 x = strings.Compare(rr.Flags, b.(*NAPTR).Flags)
610 if x != 0 {
611 if x < 0 {
612 return -1
613 }
614 return 1
615 }
616 x = len(rr.Service) - len(b.(*NAPTR).Service)
617 if x != 0 {
618 if x < 0 {
619 return -1
620 }
621 return 1
622 }
623 x = strings.Compare(rr.Service, b.(*NAPTR).Service)
624 if x != 0 {
625 if x < 0 {
626 return -1
627 }
628 return 1
629 }
630 x = len(rr.Regexp) - len(b.(*NAPTR).Regexp)
631 if x != 0 {
632 if x < 0 {
633 return -1
634 }
635 return 1
636 }
637 x = strings.Compare(rr.Regexp, b.(*NAPTR).Regexp)
638 if x != 0 {
639 if x < 0 {
640 return -1
641 }
642 return 1
643 }
644 x = comparename(rr.Replacement, b.(*NAPTR).Replacement)
645 if x != 0 {
646 if x < 0 {
647 return -1
648 }
649 return 1
650 }
651 return 0
652 }
653
654 func (rr *CERT) compare(b RR) (x int) {
655 x = cmp.Compare(rr.Type, b.(*CERT).Type)
656 if x != 0 {
657 if x < 0 {
658 return -1
659 }
660 return 1
661 }
662 x = cmp.Compare(rr.KeyTag, b.(*CERT).KeyTag)
663 if x != 0 {
664 if x < 0 {
665 return -1
666 }
667 return 1
668 }
669 x = cmp.Compare(rr.Algorithm, b.(*CERT).Algorithm)
670 if x != 0 {
671 if x < 0 {
672 return -1
673 }
674 return 1
675 }
676 x = comparebase64(rr.Certificate, b.(*CERT).Certificate)
677 if x != 0 {
678 if x < 0 {
679 return -1
680 }
681 return 1
682 }
683 return 0
684 }
685
686 func (rr *DNAME) compare(b RR) (x int) {
687 x = comparename(rr.Target, b.(*DNAME).Target)
688 if x != 0 {
689 if x < 0 {
690 return -1
691 }
692 return 1
693 }
694 return 0
695 }
696
697 func (rr *A) compare(b RR) (x int) {
698 x = rr.Addr.Compare(b.(*A).Addr)
699 if x != 0 {
700 if x < 0 {
701 return -1
702 }
703 return 1
704 }
705 return 0
706 }
707
708 func (rr *AAAA) compare(b RR) (x int) {
709 x = rr.Addr.Compare(b.(*AAAA).Addr)
710 if x != 0 {
711 if x < 0 {
712 return -1
713 }
714 return 1
715 }
716 return 0
717 }
718
719 func (rr *PX) compare(b RR) (x int) {
720 x = cmp.Compare(rr.Preference, b.(*PX).Preference)
721 if x != 0 {
722 if x < 0 {
723 return -1
724 }
725 return 1
726 }
727 x = comparename(rr.Map822, b.(*PX).Map822)
728 if x != 0 {
729 if x < 0 {
730 return -1
731 }
732 return 1
733 }
734 x = comparename(rr.Mapx400, b.(*PX).Mapx400)
735 if x != 0 {
736 if x < 0 {
737 return -1
738 }
739 return 1
740 }
741 return 0
742 }
743
744 func (rr *GPOS) compare(b RR) (x int) {
745 x = len(rr.Longitude) - len(b.(*GPOS).Longitude)
746 if x != 0 {
747 if x < 0 {
748 return -1
749 }
750 return 1
751 }
752 x = strings.Compare(rr.Longitude, b.(*GPOS).Longitude)
753 if x != 0 {
754 if x < 0 {
755 return -1
756 }
757 return 1
758 }
759 x = len(rr.Latitude) - len(b.(*GPOS).Latitude)
760 if x != 0 {
761 if x < 0 {
762 return -1
763 }
764 return 1
765 }
766 x = strings.Compare(rr.Latitude, b.(*GPOS).Latitude)
767 if x != 0 {
768 if x < 0 {
769 return -1
770 }
771 return 1
772 }
773 x = len(rr.Altitude) - len(b.(*GPOS).Altitude)
774 if x != 0 {
775 if x < 0 {
776 return -1
777 }
778 return 1
779 }
780 x = strings.Compare(rr.Altitude, b.(*GPOS).Altitude)
781 if x != 0 {
782 if x < 0 {
783 return -1
784 }
785 return 1
786 }
787 return 0
788 }
789
790 func (rr *LOC) compare(b RR) (x int) {
791 x = cmp.Compare(rr.Version, b.(*LOC).Version)
792 if x != 0 {
793 if x < 0 {
794 return -1
795 }
796 return 1
797 }
798 x = cmp.Compare(rr.Size, b.(*LOC).Size)
799 if x != 0 {
800 if x < 0 {
801 return -1
802 }
803 return 1
804 }
805 x = cmp.Compare(rr.HorizPre, b.(*LOC).HorizPre)
806 if x != 0 {
807 if x < 0 {
808 return -1
809 }
810 return 1
811 }
812 x = cmp.Compare(rr.VertPre, b.(*LOC).VertPre)
813 if x != 0 {
814 if x < 0 {
815 return -1
816 }
817 return 1
818 }
819 x = cmp.Compare(rr.Latitude, b.(*LOC).Latitude)
820 if x != 0 {
821 if x < 0 {
822 return -1
823 }
824 return 1
825 }
826 x = cmp.Compare(rr.Longitude, b.(*LOC).Longitude)
827 if x != 0 {
828 if x < 0 {
829 return -1
830 }
831 return 1
832 }
833 x = cmp.Compare(rr.Altitude, b.(*LOC).Altitude)
834 if x != 0 {
835 if x < 0 {
836 return -1
837 }
838 return 1
839 }
840 return 0
841 }
842
843 func (rr *RRSIG) compare(b RR) (x int) {
844 x = cmp.Compare(rr.TypeCovered, b.(*RRSIG).TypeCovered)
845 if x != 0 {
846 if x < 0 {
847 return -1
848 }
849 return 1
850 }
851 x = cmp.Compare(rr.Algorithm, b.(*RRSIG).Algorithm)
852 if x != 0 {
853 if x < 0 {
854 return -1
855 }
856 return 1
857 }
858 x = cmp.Compare(rr.Labels, b.(*RRSIG).Labels)
859 if x != 0 {
860 if x < 0 {
861 return -1
862 }
863 return 1
864 }
865 x = cmp.Compare(rr.OrigTTL, b.(*RRSIG).OrigTTL)
866 if x != 0 {
867 if x < 0 {
868 return -1
869 }
870 return 1
871 }
872 x = cmp.Compare(rr.Expiration, b.(*RRSIG).Expiration)
873 if x != 0 {
874 if x < 0 {
875 return -1
876 }
877 return 1
878 }
879 x = cmp.Compare(rr.Inception, b.(*RRSIG).Inception)
880 if x != 0 {
881 if x < 0 {
882 return -1
883 }
884 return 1
885 }
886 x = cmp.Compare(rr.KeyTag, b.(*RRSIG).KeyTag)
887 if x != 0 {
888 if x < 0 {
889 return -1
890 }
891 return 1
892 }
893 x = comparename(rr.SignerName, b.(*RRSIG).SignerName)
894 if x != 0 {
895 if x < 0 {
896 return -1
897 }
898 return 1
899 }
900 x = comparebase64(rr.Signature, b.(*RRSIG).Signature)
901 if x != 0 {
902 if x < 0 {
903 return -1
904 }
905 return 1
906 }
907 return 0
908 }
909
910 func (rr *NSEC) compare(b RR) (x int) {
911 x = comparename(rr.NextDomain, b.(*NSEC).NextDomain)
912 if x != 0 {
913 if x < 0 {
914 return -1
915 }
916 return 1
917 }
918 x = slices.Compare(rr.TypeBitMap, b.(*NSEC).TypeBitMap)
919 if x != 0 {
920 if x < 0 {
921 return -1
922 }
923 return 1
924 }
925 return 0
926 }
927
928 func (rr *DS) compare(b RR) (x int) {
929 x = cmp.Compare(rr.KeyTag, b.(*DS).KeyTag)
930 if x != 0 {
931 if x < 0 {
932 return -1
933 }
934 return 1
935 }
936 x = cmp.Compare(rr.Algorithm, b.(*DS).Algorithm)
937 if x != 0 {
938 if x < 0 {
939 return -1
940 }
941 return 1
942 }
943 x = cmp.Compare(rr.DigestType, b.(*DS).DigestType)
944 if x != 0 {
945 if x < 0 {
946 return -1
947 }
948 return 1
949 }
950 x = comparehex(rr.Digest, b.(*DS).Digest)
951 if x != 0 {
952 if x < 0 {
953 return -1
954 }
955 return 1
956 }
957 return 0
958 }
959
960 func (rr *KX) compare(b RR) (x int) {
961 x = cmp.Compare(rr.Preference, b.(*KX).Preference)
962 if x != 0 {
963 if x < 0 {
964 return -1
965 }
966 return 1
967 }
968 x = comparename(rr.Exchanger, b.(*KX).Exchanger)
969 if x != 0 {
970 if x < 0 {
971 return -1
972 }
973 return 1
974 }
975 return 0
976 }
977
978 func (rr *TA) compare(b RR) (x int) {
979 x = cmp.Compare(rr.KeyTag, b.(*TA).KeyTag)
980 if x != 0 {
981 if x < 0 {
982 return -1
983 }
984 return 1
985 }
986 x = cmp.Compare(rr.Algorithm, b.(*TA).Algorithm)
987 if x != 0 {
988 if x < 0 {
989 return -1
990 }
991 return 1
992 }
993 x = cmp.Compare(rr.DigestType, b.(*TA).DigestType)
994 if x != 0 {
995 if x < 0 {
996 return -1
997 }
998 return 1
999 }
1000 x = comparehex(rr.Digest, b.(*TA).Digest)
1001 if x != 0 {
1002 if x < 0 {
1003 return -1
1004 }
1005 return 1
1006 }
1007 return 0
1008 }
1009
1010 func (rr *TALINK) compare(b RR) (x int) {
1011 x = comparename(rr.PreviousName, b.(*TALINK).PreviousName)
1012 if x != 0 {
1013 if x < 0 {
1014 return -1
1015 }
1016 return 1
1017 }
1018 x = comparename(rr.NextName, b.(*TALINK).NextName)
1019 if x != 0 {
1020 if x < 0 {
1021 return -1
1022 }
1023 return 1
1024 }
1025 return 0
1026 }
1027
1028 func (rr *SSHFP) compare(b RR) (x int) {
1029 x = cmp.Compare(rr.Algorithm, b.(*SSHFP).Algorithm)
1030 if x != 0 {
1031 if x < 0 {
1032 return -1
1033 }
1034 return 1
1035 }
1036 x = cmp.Compare(rr.Type, b.(*SSHFP).Type)
1037 if x != 0 {
1038 if x < 0 {
1039 return -1
1040 }
1041 return 1
1042 }
1043 x = comparehex(rr.FingerPrint, b.(*SSHFP).FingerPrint)
1044 if x != 0 {
1045 if x < 0 {
1046 return -1
1047 }
1048 return 1
1049 }
1050 return 0
1051 }
1052
1053 func (rr *DNSKEY) compare(b RR) (x int) {
1054 x = cmp.Compare(rr.Flags, b.(*DNSKEY).Flags)
1055 if x != 0 {
1056 if x < 0 {
1057 return -1
1058 }
1059 return 1
1060 }
1061 x = cmp.Compare(rr.Protocol, b.(*DNSKEY).Protocol)
1062 if x != 0 {
1063 if x < 0 {
1064 return -1
1065 }
1066 return 1
1067 }
1068 x = cmp.Compare(rr.Algorithm, b.(*DNSKEY).Algorithm)
1069 if x != 0 {
1070 if x < 0 {
1071 return -1
1072 }
1073 return 1
1074 }
1075 x = comparebase64(rr.PublicKey, b.(*DNSKEY).PublicKey)
1076 if x != 0 {
1077 if x < 0 {
1078 return -1
1079 }
1080 return 1
1081 }
1082 return 0
1083 }
1084
1085 func (rr *RKEY) compare(b RR) (x int) {
1086 x = cmp.Compare(rr.Flags, b.(*RKEY).Flags)
1087 if x != 0 {
1088 if x < 0 {
1089 return -1
1090 }
1091 return 1
1092 }
1093 x = cmp.Compare(rr.Protocol, b.(*RKEY).Protocol)
1094 if x != 0 {
1095 if x < 0 {
1096 return -1
1097 }
1098 return 1
1099 }
1100 x = cmp.Compare(rr.Algorithm, b.(*RKEY).Algorithm)
1101 if x != 0 {
1102 if x < 0 {
1103 return -1
1104 }
1105 return 1
1106 }
1107 x = comparebase64(rr.PublicKey, b.(*RKEY).PublicKey)
1108 if x != 0 {
1109 if x < 0 {
1110 return -1
1111 }
1112 return 1
1113 }
1114 return 0
1115 }
1116
1117 func (rr *NSAPPTR) compare(b RR) (x int) {
1118 x = comparename(rr.Ptr, b.(*NSAPPTR).Ptr)
1119 if x != 0 {
1120 if x < 0 {
1121 return -1
1122 }
1123 return 1
1124 }
1125 return 0
1126 }
1127
1128 func (rr *NSEC3) compare(b RR) (x int) {
1129 x = cmp.Compare(rr.Hash, b.(*NSEC3).Hash)
1130 if x != 0 {
1131 if x < 0 {
1132 return -1
1133 }
1134 return 1
1135 }
1136 x = cmp.Compare(rr.Flags, b.(*NSEC3).Flags)
1137 if x != 0 {
1138 if x < 0 {
1139 return -1
1140 }
1141 return 1
1142 }
1143 x = cmp.Compare(rr.Iterations, b.(*NSEC3).Iterations)
1144 if x != 0 {
1145 if x < 0 {
1146 return -1
1147 }
1148 return 1
1149 }
1150 x = cmp.Compare(rr.SaltLength, b.(*NSEC3).SaltLength)
1151 if x != 0 {
1152 if x < 0 {
1153 return -1
1154 }
1155 return 1
1156 }
1157 x = comparehex(rr.Salt, b.(*NSEC3).Salt)
1158 if x != 0 {
1159 if x < 0 {
1160 return -1
1161 }
1162 return 1
1163 }
1164 x = cmp.Compare(rr.HashLength, b.(*NSEC3).HashLength)
1165 if x != 0 {
1166 if x < 0 {
1167 return -1
1168 }
1169 return 1
1170 }
1171 x = comparebase32(rr.NextDomain, b.(*NSEC3).NextDomain)
1172 if x != 0 {
1173 if x < 0 {
1174 return -1
1175 }
1176 return 1
1177 }
1178 x = slices.Compare(rr.TypeBitMap, b.(*NSEC3).TypeBitMap)
1179 if x != 0 {
1180 if x < 0 {
1181 return -1
1182 }
1183 return 1
1184 }
1185 return 0
1186 }
1187
1188 func (rr *NSEC3PARAM) compare(b RR) (x int) {
1189 x = cmp.Compare(rr.Hash, b.(*NSEC3PARAM).Hash)
1190 if x != 0 {
1191 if x < 0 {
1192 return -1
1193 }
1194 return 1
1195 }
1196 x = cmp.Compare(rr.Flags, b.(*NSEC3PARAM).Flags)
1197 if x != 0 {
1198 if x < 0 {
1199 return -1
1200 }
1201 return 1
1202 }
1203 x = cmp.Compare(rr.Iterations, b.(*NSEC3PARAM).Iterations)
1204 if x != 0 {
1205 if x < 0 {
1206 return -1
1207 }
1208 return 1
1209 }
1210 x = cmp.Compare(rr.SaltLength, b.(*NSEC3PARAM).SaltLength)
1211 if x != 0 {
1212 if x < 0 {
1213 return -1
1214 }
1215 return 1
1216 }
1217 x = comparehex(rr.Salt, b.(*NSEC3PARAM).Salt)
1218 if x != 0 {
1219 if x < 0 {
1220 return -1
1221 }
1222 return 1
1223 }
1224 return 0
1225 }
1226
1227 func (rr *TKEY) compare(b RR) (x int) {
1228 x = comparename(rr.Algorithm, b.(*TKEY).Algorithm)
1229 if x != 0 {
1230 if x < 0 {
1231 return -1
1232 }
1233 return 1
1234 }
1235 x = cmp.Compare(rr.Inception, b.(*TKEY).Inception)
1236 if x != 0 {
1237 if x < 0 {
1238 return -1
1239 }
1240 return 1
1241 }
1242 x = cmp.Compare(rr.Expiration, b.(*TKEY).Expiration)
1243 if x != 0 {
1244 if x < 0 {
1245 return -1
1246 }
1247 return 1
1248 }
1249 x = cmp.Compare(rr.Mode, b.(*TKEY).Mode)
1250 if x != 0 {
1251 if x < 0 {
1252 return -1
1253 }
1254 return 1
1255 }
1256 x = cmp.Compare(rr.Error, b.(*TKEY).Error)
1257 if x != 0 {
1258 if x < 0 {
1259 return -1
1260 }
1261 return 1
1262 }
1263 x = cmp.Compare(rr.KeySize, b.(*TKEY).KeySize)
1264 if x != 0 {
1265 if x < 0 {
1266 return -1
1267 }
1268 return 1
1269 }
1270 x = comparehex(rr.Key, b.(*TKEY).Key)
1271 if x != 0 {
1272 if x < 0 {
1273 return -1
1274 }
1275 return 1
1276 }
1277 x = cmp.Compare(rr.OtherLen, b.(*TKEY).OtherLen)
1278 if x != 0 {
1279 if x < 0 {
1280 return -1
1281 }
1282 return 1
1283 }
1284 x = comparehex(rr.OtherData, b.(*TKEY).OtherData)
1285 if x != 0 {
1286 if x < 0 {
1287 return -1
1288 }
1289 return 1
1290 }
1291 return 0
1292 }
1293
1294 func (rr *RFC3597) compare(b RR) (x int) {
1295 x = comparehex(rr.RFC3597.Data, b.(*RFC3597).RFC3597.Data)
1296 if x != 0 {
1297 if x < 0 {
1298 return -1
1299 }
1300 return 1
1301 }
1302 return 0
1303 }
1304
1305 func (rr *URI) compare(b RR) (x int) {
1306 x = cmp.Compare(rr.Priority, b.(*URI).Priority)
1307 if x != 0 {
1308 if x < 0 {
1309 return -1
1310 }
1311 return 1
1312 }
1313 x = cmp.Compare(rr.Weight, b.(*URI).Weight)
1314 if x != 0 {
1315 if x < 0 {
1316 return -1
1317 }
1318 return 1
1319 }
1320 x = len(rr.Target) - len(b.(*URI).Target)
1321 if x != 0 {
1322 if x < 0 {
1323 return -1
1324 }
1325 return 1
1326 }
1327 x = strings.Compare(rr.Target, b.(*URI).Target)
1328 if x != 0 {
1329 if x < 0 {
1330 return -1
1331 }
1332 return 1
1333 }
1334 return 0
1335 }
1336
1337 func (rr *DHCID) compare(b RR) (x int) {
1338 x = comparebase64(rr.Digest, b.(*DHCID).Digest)
1339 if x != 0 {
1340 if x < 0 {
1341 return -1
1342 }
1343 return 1
1344 }
1345 return 0
1346 }
1347
1348 func (rr *TLSA) compare(b RR) (x int) {
1349 x = cmp.Compare(rr.Usage, b.(*TLSA).Usage)
1350 if x != 0 {
1351 if x < 0 {
1352 return -1
1353 }
1354 return 1
1355 }
1356 x = cmp.Compare(rr.Selector, b.(*TLSA).Selector)
1357 if x != 0 {
1358 if x < 0 {
1359 return -1
1360 }
1361 return 1
1362 }
1363 x = cmp.Compare(rr.MatchingType, b.(*TLSA).MatchingType)
1364 if x != 0 {
1365 if x < 0 {
1366 return -1
1367 }
1368 return 1
1369 }
1370 x = comparehex(rr.Certificate, b.(*TLSA).Certificate)
1371 if x != 0 {
1372 if x < 0 {
1373 return -1
1374 }
1375 return 1
1376 }
1377 return 0
1378 }
1379
1380 func (rr *SMIMEA) compare(b RR) (x int) {
1381 x = cmp.Compare(rr.Usage, b.(*SMIMEA).Usage)
1382 if x != 0 {
1383 if x < 0 {
1384 return -1
1385 }
1386 return 1
1387 }
1388 x = cmp.Compare(rr.Selector, b.(*SMIMEA).Selector)
1389 if x != 0 {
1390 if x < 0 {
1391 return -1
1392 }
1393 return 1
1394 }
1395 x = cmp.Compare(rr.MatchingType, b.(*SMIMEA).MatchingType)
1396 if x != 0 {
1397 if x < 0 {
1398 return -1
1399 }
1400 return 1
1401 }
1402 x = comparehex(rr.Certificate, b.(*SMIMEA).Certificate)
1403 if x != 0 {
1404 if x < 0 {
1405 return -1
1406 }
1407 return 1
1408 }
1409 return 0
1410 }
1411
1412 func (rr *HIP) compare(b RR) (x int) {
1413 x = cmp.Compare(rr.HitLength, b.(*HIP).HitLength)
1414 if x != 0 {
1415 if x < 0 {
1416 return -1
1417 }
1418 return 1
1419 }
1420 x = cmp.Compare(rr.PublicKeyAlgorithm, b.(*HIP).PublicKeyAlgorithm)
1421 if x != 0 {
1422 if x < 0 {
1423 return -1
1424 }
1425 return 1
1426 }
1427 x = cmp.Compare(rr.PublicKeyLength, b.(*HIP).PublicKeyLength)
1428 if x != 0 {
1429 if x < 0 {
1430 return -1
1431 }
1432 return 1
1433 }
1434 x = comparehex(rr.Hit, b.(*HIP).Hit)
1435 if x != 0 {
1436 if x < 0 {
1437 return -1
1438 }
1439 return 1
1440 }
1441 x = comparebase64(rr.PublicKey, b.(*HIP).PublicKey)
1442 if x != 0 {
1443 if x < 0 {
1444 return -1
1445 }
1446 return 1
1447 }
1448 j := 0
1449 for i := range rr.RendezvousServers {
1450 if i > j || x != 0 {
1451 break
1452 }
1453 x = comparename(rr.RendezvousServers[i], b.(*HIP).RendezvousServers[j])
1454 j++
1455 }
1456 if x != 0 {
1457 if x < 0 {
1458 return -1
1459 }
1460 return 1
1461 }
1462 return 0
1463 }
1464
1465 func (rr *NINFO) compare(b RR) (x int) {
1466 j := 0
1467 for i := range rr.ZSData {
1468 if i > j || x != 0 {
1469 break
1470 }
1471 x = len(rr.ZSData[i]) - len(b.(*NINFO).ZSData[j])
1472 if x == 0 {
1473 x = strings.Compare(rr.ZSData[i], b.(*NINFO).ZSData[j])
1474 }
1475 j++
1476 }
1477 if x != 0 {
1478 if x < 0 {
1479 return -1
1480 }
1481 return 1
1482 }
1483 return 0
1484 }
1485
1486 func (rr *NID) compare(b RR) (x int) {
1487 x = cmp.Compare(rr.Preference, b.(*NID).Preference)
1488 if x != 0 {
1489 if x < 0 {
1490 return -1
1491 }
1492 return 1
1493 }
1494 return 0
1495 }
1496
1497 func (rr *L32) compare(b RR) (x int) {
1498 x = cmp.Compare(rr.Preference, b.(*L32).Preference)
1499 if x != 0 {
1500 if x < 0 {
1501 return -1
1502 }
1503 return 1
1504 }
1505 x = rr.Locator32.Compare(b.(*L32).Locator32)
1506 if x != 0 {
1507 if x < 0 {
1508 return -1
1509 }
1510 return 1
1511 }
1512 return 0
1513 }
1514
1515 func (rr *L64) compare(b RR) (x int) {
1516 x = cmp.Compare(rr.Preference, b.(*L64).Preference)
1517 if x != 0 {
1518 if x < 0 {
1519 return -1
1520 }
1521 return 1
1522 }
1523 return 0
1524 }
1525
1526 func (rr *LP) compare(b RR) (x int) {
1527 x = cmp.Compare(rr.Preference, b.(*LP).Preference)
1528 if x != 0 {
1529 if x < 0 {
1530 return -1
1531 }
1532 return 1
1533 }
1534 x = comparename(rr.Fqdn, b.(*LP).Fqdn)
1535 if x != 0 {
1536 if x < 0 {
1537 return -1
1538 }
1539 return 1
1540 }
1541 return 0
1542 }
1543
1544 func (rr *EUI48) compare(b RR) (x int) {
1545 x = cmp.Compare(rr.Address, b.(*EUI48).Address)
1546 if x != 0 {
1547 if x < 0 {
1548 return -1
1549 }
1550 return 1
1551 }
1552 return 0
1553 }
1554
1555 func (rr *EUI64) compare(b RR) (x int) {
1556 x = cmp.Compare(rr.Address, b.(*EUI64).Address)
1557 if x != 0 {
1558 if x < 0 {
1559 return -1
1560 }
1561 return 1
1562 }
1563 return 0
1564 }
1565
1566 func (rr *CAA) compare(b RR) (x int) {
1567 x = cmp.Compare(rr.Flag, b.(*CAA).Flag)
1568 if x != 0 {
1569 if x < 0 {
1570 return -1
1571 }
1572 return 1
1573 }
1574 x = len(rr.Tag) - len(b.(*CAA).Tag)
1575 if x != 0 {
1576 if x < 0 {
1577 return -1
1578 }
1579 return 1
1580 }
1581 x = strings.Compare(rr.Tag, b.(*CAA).Tag)
1582 if x != 0 {
1583 if x < 0 {
1584 return -1
1585 }
1586 return 1
1587 }
1588 x = len(rr.Value) - len(b.(*CAA).Value)
1589 if x != 0 {
1590 if x < 0 {
1591 return -1
1592 }
1593 return 1
1594 }
1595 x = strings.Compare(rr.Value, b.(*CAA).Value)
1596 if x != 0 {
1597 if x < 0 {
1598 return -1
1599 }
1600 return 1
1601 }
1602 return 0
1603 }
1604
1605 func (rr *UID) compare(b RR) (x int) {
1606 x = cmp.Compare(rr.Uid, b.(*UID).Uid)
1607 if x != 0 {
1608 if x < 0 {
1609 return -1
1610 }
1611 return 1
1612 }
1613 return 0
1614 }
1615
1616 func (rr *GID) compare(b RR) (x int) {
1617 x = cmp.Compare(rr.Gid, b.(*GID).Gid)
1618 if x != 0 {
1619 if x < 0 {
1620 return -1
1621 }
1622 return 1
1623 }
1624 return 0
1625 }
1626
1627 func (rr *UINFO) compare(b RR) (x int) {
1628 x = len(rr.Uinfo) - len(b.(*UINFO).Uinfo)
1629 if x != 0 {
1630 if x < 0 {
1631 return -1
1632 }
1633 return 1
1634 }
1635 x = strings.Compare(rr.Uinfo, b.(*UINFO).Uinfo)
1636 if x != 0 {
1637 if x < 0 {
1638 return -1
1639 }
1640 return 1
1641 }
1642 return 0
1643 }
1644
1645 func (rr *EID) compare(b RR) (x int) {
1646 x = comparehex(rr.Endpoint, b.(*EID).Endpoint)
1647 if x != 0 {
1648 if x < 0 {
1649 return -1
1650 }
1651 return 1
1652 }
1653 return 0
1654 }
1655
1656 func (rr *NIMLOC) compare(b RR) (x int) {
1657 x = comparehex(rr.Locator, b.(*NIMLOC).Locator)
1658 if x != 0 {
1659 if x < 0 {
1660 return -1
1661 }
1662 return 1
1663 }
1664 return 0
1665 }
1666
1667 func (rr *OPENPGPKEY) compare(b RR) (x int) {
1668 x = comparebase64(rr.PublicKey, b.(*OPENPGPKEY).PublicKey)
1669 if x != 0 {
1670 if x < 0 {
1671 return -1
1672 }
1673 return 1
1674 }
1675 return 0
1676 }
1677
1678 func (rr *CSYNC) compare(b RR) (x int) {
1679 x = cmp.Compare(rr.Serial, b.(*CSYNC).Serial)
1680 if x != 0 {
1681 if x < 0 {
1682 return -1
1683 }
1684 return 1
1685 }
1686 x = cmp.Compare(rr.Flags, b.(*CSYNC).Flags)
1687 if x != 0 {
1688 if x < 0 {
1689 return -1
1690 }
1691 return 1
1692 }
1693 x = slices.Compare(rr.TypeBitMap, b.(*CSYNC).TypeBitMap)
1694 if x != 0 {
1695 if x < 0 {
1696 return -1
1697 }
1698 return 1
1699 }
1700 return 0
1701 }
1702
1703 func (rr *ZONEMD) compare(b RR) (x int) {
1704 x = cmp.Compare(rr.Serial, b.(*ZONEMD).Serial)
1705 if x != 0 {
1706 if x < 0 {
1707 return -1
1708 }
1709 return 1
1710 }
1711 x = cmp.Compare(rr.Scheme, b.(*ZONEMD).Scheme)
1712 if x != 0 {
1713 if x < 0 {
1714 return -1
1715 }
1716 return 1
1717 }
1718 x = cmp.Compare(rr.Hash, b.(*ZONEMD).Hash)
1719 if x != 0 {
1720 if x < 0 {
1721 return -1
1722 }
1723 return 1
1724 }
1725 x = comparehex(rr.Digest, b.(*ZONEMD).Digest)
1726 if x != 0 {
1727 if x < 0 {
1728 return -1
1729 }
1730 return 1
1731 }
1732 return 0
1733 }
1734
1735 func (rr *SVCB) compare(b RR) (x int) {
1736 x = cmp.Compare(rr.Priority, b.(*SVCB).Priority)
1737 if x != 0 {
1738 if x < 0 {
1739 return -1
1740 }
1741 return 1
1742 }
1743 x = comparename(rr.Target, b.(*SVCB).Target)
1744 if x != 0 {
1745 if x < 0 {
1746 return -1
1747 }
1748 return 1
1749 }
1750 x = comparepair(rr.Value, b.(*SVCB).Value)
1751 if x != 0 {
1752 if x < 0 {
1753 return -1
1754 }
1755 return 1
1756 }
1757 return 0
1758 }
1759
1760 func (rr *DELEG) compare(b RR) (x int) {
1761 x = compareinfo(rr.Value, b.(*DELEG).Value)
1762 if x != 0 {
1763 if x < 0 {
1764 return -1
1765 }
1766 return 1
1767 }
1768 return 0
1769 }
1770
1771 func (rr *DSYNC) compare(b RR) (x int) {
1772 x = cmp.Compare(rr.Type, b.(*DSYNC).Type)
1773 if x != 0 {
1774 if x < 0 {
1775 return -1
1776 }
1777 return 1
1778 }
1779 x = cmp.Compare(rr.Scheme, b.(*DSYNC).Scheme)
1780 if x != 0 {
1781 if x < 0 {
1782 return -1
1783 }
1784 return 1
1785 }
1786 x = cmp.Compare(rr.Port, b.(*DSYNC).Port)
1787 if x != 0 {
1788 if x < 0 {
1789 return -1
1790 }
1791 return 1
1792 }
1793 x = comparename(rr.Target, b.(*DSYNC).Target)
1794 if x != 0 {
1795 if x < 0 {
1796 return -1
1797 }
1798 return 1
1799 }
1800 return 0
1801 }
1802
1803 func (rr *TSIG) compare(b RR) (x int) {
1804 x = comparename(rr.Algorithm, b.(*TSIG).Algorithm)
1805 if x != 0 {
1806 if x < 0 {
1807 return -1
1808 }
1809 return 1
1810 }
1811 x = cmp.Compare(rr.TimeSigned, b.(*TSIG).TimeSigned)
1812 if x != 0 {
1813 if x < 0 {
1814 return -1
1815 }
1816 return 1
1817 }
1818 x = cmp.Compare(rr.Fudge, b.(*TSIG).Fudge)
1819 if x != 0 {
1820 if x < 0 {
1821 return -1
1822 }
1823 return 1
1824 }
1825 x = cmp.Compare(rr.MACSize, b.(*TSIG).MACSize)
1826 if x != 0 {
1827 if x < 0 {
1828 return -1
1829 }
1830 return 1
1831 }
1832 x = comparehex(rr.MAC, b.(*TSIG).MAC)
1833 if x != 0 {
1834 if x < 0 {
1835 return -1
1836 }
1837 return 1
1838 }
1839 x = cmp.Compare(rr.OrigID, b.(*TSIG).OrigID)
1840 if x != 0 {
1841 if x < 0 {
1842 return -1
1843 }
1844 return 1
1845 }
1846 x = cmp.Compare(rr.Error, b.(*TSIG).Error)
1847 if x != 0 {
1848 if x < 0 {
1849 return -1
1850 }
1851 return 1
1852 }
1853 x = cmp.Compare(rr.OtherLen, b.(*TSIG).OtherLen)
1854 if x != 0 {
1855 if x < 0 {
1856 return -1
1857 }
1858 return 1
1859 }
1860 x = comparehex(rr.OtherData, b.(*TSIG).OtherData)
1861 if x != 0 {
1862 if x < 0 {
1863 return -1
1864 }
1865 return 1
1866 }
1867 return 0
1868 }
1869
1870 func (rr *NXNAME) compare(b RR) (x int) {
1871 return 0
1872 }
1873
1874 func (rr *SPF) compare(b RR) (x int) {
1875 return rr.TXT.compare(&b.(*SPF).TXT)
1876 }
1877
1878 func (rr *AVC) compare(b RR) (x int) {
1879 return rr.TXT.compare(&b.(*AVC).TXT)
1880 }
1881
1882 func (rr *WALLET) compare(b RR) (x int) {
1883 return rr.TXT.compare(&b.(*WALLET).TXT)
1884 }
1885
1886 func (rr *CLA) compare(b RR) (x int) {
1887 return rr.TXT.compare(&b.(*CLA).TXT)
1888 }
1889
1890 func (rr *SIG) compare(b RR) (x int) {
1891 return rr.RRSIG.compare(&b.(*SIG).RRSIG)
1892 }
1893
1894 func (rr *NXT) compare(b RR) (x int) {
1895 return rr.NSEC.compare(&b.(*NXT).NSEC)
1896 }
1897
1898 func (rr *DLV) compare(b RR) (x int) {
1899 return rr.DS.compare(&b.(*DLV).DS)
1900 }
1901
1902 func (rr *CDS) compare(b RR) (x int) {
1903 return rr.DS.compare(&b.(*CDS).DS)
1904 }
1905
1906 func (rr *KEY) compare(b RR) (x int) {
1907 return rr.DNSKEY.compare(&b.(*KEY).DNSKEY)
1908 }
1909
1910 func (rr *CDNSKEY) compare(b RR) (x int) {
1911 return rr.DNSKEY.compare(&b.(*CDNSKEY).DNSKEY)
1912 }
1913
1914 func (rr *OPT) compare(b RR) (x int) {
1915 return 0
1916 }
1917
1918 func (rr *RESINFO) compare(b RR) (x int) {
1919 return rr.TXT.compare(&b.(*RESINFO).TXT)
1920 }
1921
1922 func (rr *HTTPS) compare(b RR) (x int) {
1923 return rr.SVCB.compare(&b.(*HTTPS).SVCB)
1924 }
1925
1926 func (rr *DELEGPARAM) compare(b RR) (x int) {
1927 return rr.DELEG.compare(&b.(*DELEGPARAM).DELEG)
1928 }
1929
1930 func (rr *ANY) compare(b RR) (x int) {
1931 return 0
1932 }
1933
1934 func (rr *AXFR) compare(b RR) (x int) {
1935 return 0
1936 }
1937
1938 func (rr *IXFR) compare(b RR) (x int) {
1939 return 0
1940 }