| 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 |
if len(rr.Txt) < len(b.(*TXT).Txt) { |
| 525 |
return -1 |
| 526 |
} |
| 527 |
if len(rr.Txt) > len(b.(*TXT).Txt) { |
| 528 |
return 1 |
| 529 |
} |
| 530 |
for i := range rr.Txt { |
| 531 |
if x != 0 { |
| 532 |
break |
| 533 |
} |
| 534 |
x = len(rr.Txt[i]) - len(b.(*TXT).Txt[i]) |
| 535 |
if x == 0 { |
| 536 |
x = strings.Compare(rr.Txt[i], b.(*TXT).Txt[i]) |
| 537 |
} |
| 538 |
} |
| 539 |
if x != 0 { |
| 540 |
if x < 0 { |
| 541 |
return -1 |
| 542 |
} |
| 543 |
return 1 |
| 544 |
} |
| 545 |
return 0 |
| 546 |
} |
| 547 |
|
| 548 |
func (rr *IPN) compare(b RR) (x int) { |
| 549 |
x = cmp.Compare(rr.Node, b.(*IPN).Node) |
| 550 |
if x != 0 { |
| 551 |
if x < 0 { |
| 552 |
return -1 |
| 553 |
} |
| 554 |
return 1 |
| 555 |
} |
| 556 |
return 0 |
| 557 |
} |
| 558 |
|
| 559 |
func (rr *SRV) compare(b RR) (x int) { |
| 560 |
x = cmp.Compare(rr.Priority, b.(*SRV).Priority) |
| 561 |
if x != 0 { |
| 562 |
if x < 0 { |
| 563 |
return -1 |
| 564 |
} |
| 565 |
return 1 |
| 566 |
} |
| 567 |
x = cmp.Compare(rr.Weight, b.(*SRV).Weight) |
| 568 |
if x != 0 { |
| 569 |
if x < 0 { |
| 570 |
return -1 |
| 571 |
} |
| 572 |
return 1 |
| 573 |
} |
| 574 |
x = cmp.Compare(rr.Port, b.(*SRV).Port) |
| 575 |
if x != 0 { |
| 576 |
if x < 0 { |
| 577 |
return -1 |
| 578 |
} |
| 579 |
return 1 |
| 580 |
} |
| 581 |
x = comparename(rr.Target, b.(*SRV).Target) |
| 582 |
if x != 0 { |
| 583 |
if x < 0 { |
| 584 |
return -1 |
| 585 |
} |
| 586 |
return 1 |
| 587 |
} |
| 588 |
return 0 |
| 589 |
} |
| 590 |
|
| 591 |
func (rr *NAPTR) compare(b RR) (x int) { |
| 592 |
x = cmp.Compare(rr.Order, b.(*NAPTR).Order) |
| 593 |
if x != 0 { |
| 594 |
if x < 0 { |
| 595 |
return -1 |
| 596 |
} |
| 597 |
return 1 |
| 598 |
} |
| 599 |
x = cmp.Compare(rr.Preference, b.(*NAPTR).Preference) |
| 600 |
if x != 0 { |
| 601 |
if x < 0 { |
| 602 |
return -1 |
| 603 |
} |
| 604 |
return 1 |
| 605 |
} |
| 606 |
x = len(rr.Flags) - len(b.(*NAPTR).Flags) |
| 607 |
if x != 0 { |
| 608 |
if x < 0 { |
| 609 |
return -1 |
| 610 |
} |
| 611 |
return 1 |
| 612 |
} |
| 613 |
x = strings.Compare(rr.Flags, b.(*NAPTR).Flags) |
| 614 |
if x != 0 { |
| 615 |
if x < 0 { |
| 616 |
return -1 |
| 617 |
} |
| 618 |
return 1 |
| 619 |
} |
| 620 |
x = len(rr.Service) - len(b.(*NAPTR).Service) |
| 621 |
if x != 0 { |
| 622 |
if x < 0 { |
| 623 |
return -1 |
| 624 |
} |
| 625 |
return 1 |
| 626 |
} |
| 627 |
x = strings.Compare(rr.Service, b.(*NAPTR).Service) |
| 628 |
if x != 0 { |
| 629 |
if x < 0 { |
| 630 |
return -1 |
| 631 |
} |
| 632 |
return 1 |
| 633 |
} |
| 634 |
x = len(rr.Regexp) - len(b.(*NAPTR).Regexp) |
| 635 |
if x != 0 { |
| 636 |
if x < 0 { |
| 637 |
return -1 |
| 638 |
} |
| 639 |
return 1 |
| 640 |
} |
| 641 |
x = strings.Compare(rr.Regexp, b.(*NAPTR).Regexp) |
| 642 |
if x != 0 { |
| 643 |
if x < 0 { |
| 644 |
return -1 |
| 645 |
} |
| 646 |
return 1 |
| 647 |
} |
| 648 |
x = comparename(rr.Replacement, b.(*NAPTR).Replacement) |
| 649 |
if x != 0 { |
| 650 |
if x < 0 { |
| 651 |
return -1 |
| 652 |
} |
| 653 |
return 1 |
| 654 |
} |
| 655 |
return 0 |
| 656 |
} |
| 657 |
|
| 658 |
func (rr *CERT) compare(b RR) (x int) { |
| 659 |
x = cmp.Compare(rr.Type, b.(*CERT).Type) |
| 660 |
if x != 0 { |
| 661 |
if x < 0 { |
| 662 |
return -1 |
| 663 |
} |
| 664 |
return 1 |
| 665 |
} |
| 666 |
x = cmp.Compare(rr.KeyTag, b.(*CERT).KeyTag) |
| 667 |
if x != 0 { |
| 668 |
if x < 0 { |
| 669 |
return -1 |
| 670 |
} |
| 671 |
return 1 |
| 672 |
} |
| 673 |
x = cmp.Compare(rr.Algorithm, b.(*CERT).Algorithm) |
| 674 |
if x != 0 { |
| 675 |
if x < 0 { |
| 676 |
return -1 |
| 677 |
} |
| 678 |
return 1 |
| 679 |
} |
| 680 |
x = comparebase64(rr.Certificate, b.(*CERT).Certificate) |
| 681 |
if x != 0 { |
| 682 |
if x < 0 { |
| 683 |
return -1 |
| 684 |
} |
| 685 |
return 1 |
| 686 |
} |
| 687 |
return 0 |
| 688 |
} |
| 689 |
|
| 690 |
func (rr *DNAME) compare(b RR) (x int) { |
| 691 |
x = comparename(rr.Target, b.(*DNAME).Target) |
| 692 |
if x != 0 { |
| 693 |
if x < 0 { |
| 694 |
return -1 |
| 695 |
} |
| 696 |
return 1 |
| 697 |
} |
| 698 |
return 0 |
| 699 |
} |
| 700 |
|
| 701 |
func (rr *A) compare(b RR) (x int) { |
| 702 |
x = rr.Addr.Compare(b.(*A).Addr) |
| 703 |
if x != 0 { |
| 704 |
if x < 0 { |
| 705 |
return -1 |
| 706 |
} |
| 707 |
return 1 |
| 708 |
} |
| 709 |
return 0 |
| 710 |
} |
| 711 |
|
| 712 |
func (rr *AAAA) compare(b RR) (x int) { |
| 713 |
x = rr.Addr.Compare(b.(*AAAA).Addr) |
| 714 |
if x != 0 { |
| 715 |
if x < 0 { |
| 716 |
return -1 |
| 717 |
} |
| 718 |
return 1 |
| 719 |
} |
| 720 |
return 0 |
| 721 |
} |
| 722 |
|
| 723 |
func (rr *PX) compare(b RR) (x int) { |
| 724 |
x = cmp.Compare(rr.Preference, b.(*PX).Preference) |
| 725 |
if x != 0 { |
| 726 |
if x < 0 { |
| 727 |
return -1 |
| 728 |
} |
| 729 |
return 1 |
| 730 |
} |
| 731 |
x = comparename(rr.Map822, b.(*PX).Map822) |
| 732 |
if x != 0 { |
| 733 |
if x < 0 { |
| 734 |
return -1 |
| 735 |
} |
| 736 |
return 1 |
| 737 |
} |
| 738 |
x = comparename(rr.Mapx400, b.(*PX).Mapx400) |
| 739 |
if x != 0 { |
| 740 |
if x < 0 { |
| 741 |
return -1 |
| 742 |
} |
| 743 |
return 1 |
| 744 |
} |
| 745 |
return 0 |
| 746 |
} |
| 747 |
|
| 748 |
func (rr *GPOS) compare(b RR) (x int) { |
| 749 |
x = len(rr.Longitude) - len(b.(*GPOS).Longitude) |
| 750 |
if x != 0 { |
| 751 |
if x < 0 { |
| 752 |
return -1 |
| 753 |
} |
| 754 |
return 1 |
| 755 |
} |
| 756 |
x = strings.Compare(rr.Longitude, b.(*GPOS).Longitude) |
| 757 |
if x != 0 { |
| 758 |
if x < 0 { |
| 759 |
return -1 |
| 760 |
} |
| 761 |
return 1 |
| 762 |
} |
| 763 |
x = len(rr.Latitude) - len(b.(*GPOS).Latitude) |
| 764 |
if x != 0 { |
| 765 |
if x < 0 { |
| 766 |
return -1 |
| 767 |
} |
| 768 |
return 1 |
| 769 |
} |
| 770 |
x = strings.Compare(rr.Latitude, b.(*GPOS).Latitude) |
| 771 |
if x != 0 { |
| 772 |
if x < 0 { |
| 773 |
return -1 |
| 774 |
} |
| 775 |
return 1 |
| 776 |
} |
| 777 |
x = len(rr.Altitude) - len(b.(*GPOS).Altitude) |
| 778 |
if x != 0 { |
| 779 |
if x < 0 { |
| 780 |
return -1 |
| 781 |
} |
| 782 |
return 1 |
| 783 |
} |
| 784 |
x = strings.Compare(rr.Altitude, b.(*GPOS).Altitude) |
| 785 |
if x != 0 { |
| 786 |
if x < 0 { |
| 787 |
return -1 |
| 788 |
} |
| 789 |
return 1 |
| 790 |
} |
| 791 |
return 0 |
| 792 |
} |
| 793 |
|
| 794 |
func (rr *LOC) compare(b RR) (x int) { |
| 795 |
x = cmp.Compare(rr.Version, b.(*LOC).Version) |
| 796 |
if x != 0 { |
| 797 |
if x < 0 { |
| 798 |
return -1 |
| 799 |
} |
| 800 |
return 1 |
| 801 |
} |
| 802 |
x = cmp.Compare(rr.Size, b.(*LOC).Size) |
| 803 |
if x != 0 { |
| 804 |
if x < 0 { |
| 805 |
return -1 |
| 806 |
} |
| 807 |
return 1 |
| 808 |
} |
| 809 |
x = cmp.Compare(rr.HorizPre, b.(*LOC).HorizPre) |
| 810 |
if x != 0 { |
| 811 |
if x < 0 { |
| 812 |
return -1 |
| 813 |
} |
| 814 |
return 1 |
| 815 |
} |
| 816 |
x = cmp.Compare(rr.VertPre, b.(*LOC).VertPre) |
| 817 |
if x != 0 { |
| 818 |
if x < 0 { |
| 819 |
return -1 |
| 820 |
} |
| 821 |
return 1 |
| 822 |
} |
| 823 |
x = cmp.Compare(rr.Latitude, b.(*LOC).Latitude) |
| 824 |
if x != 0 { |
| 825 |
if x < 0 { |
| 826 |
return -1 |
| 827 |
} |
| 828 |
return 1 |
| 829 |
} |
| 830 |
x = cmp.Compare(rr.Longitude, b.(*LOC).Longitude) |
| 831 |
if x != 0 { |
| 832 |
if x < 0 { |
| 833 |
return -1 |
| 834 |
} |
| 835 |
return 1 |
| 836 |
} |
| 837 |
x = cmp.Compare(rr.Altitude, b.(*LOC).Altitude) |
| 838 |
if x != 0 { |
| 839 |
if x < 0 { |
| 840 |
return -1 |
| 841 |
} |
| 842 |
return 1 |
| 843 |
} |
| 844 |
return 0 |
| 845 |
} |
| 846 |
|
| 847 |
func (rr *RRSIG) compare(b RR) (x int) { |
| 848 |
x = cmp.Compare(rr.TypeCovered, b.(*RRSIG).TypeCovered) |
| 849 |
if x != 0 { |
| 850 |
if x < 0 { |
| 851 |
return -1 |
| 852 |
} |
| 853 |
return 1 |
| 854 |
} |
| 855 |
x = cmp.Compare(rr.Algorithm, b.(*RRSIG).Algorithm) |
| 856 |
if x != 0 { |
| 857 |
if x < 0 { |
| 858 |
return -1 |
| 859 |
} |
| 860 |
return 1 |
| 861 |
} |
| 862 |
x = cmp.Compare(rr.Labels, b.(*RRSIG).Labels) |
| 863 |
if x != 0 { |
| 864 |
if x < 0 { |
| 865 |
return -1 |
| 866 |
} |
| 867 |
return 1 |
| 868 |
} |
| 869 |
x = cmp.Compare(rr.OrigTTL, b.(*RRSIG).OrigTTL) |
| 870 |
if x != 0 { |
| 871 |
if x < 0 { |
| 872 |
return -1 |
| 873 |
} |
| 874 |
return 1 |
| 875 |
} |
| 876 |
x = cmp.Compare(rr.Expiration, b.(*RRSIG).Expiration) |
| 877 |
if x != 0 { |
| 878 |
if x < 0 { |
| 879 |
return -1 |
| 880 |
} |
| 881 |
return 1 |
| 882 |
} |
| 883 |
x = cmp.Compare(rr.Inception, b.(*RRSIG).Inception) |
| 884 |
if x != 0 { |
| 885 |
if x < 0 { |
| 886 |
return -1 |
| 887 |
} |
| 888 |
return 1 |
| 889 |
} |
| 890 |
x = cmp.Compare(rr.KeyTag, b.(*RRSIG).KeyTag) |
| 891 |
if x != 0 { |
| 892 |
if x < 0 { |
| 893 |
return -1 |
| 894 |
} |
| 895 |
return 1 |
| 896 |
} |
| 897 |
x = comparename(rr.SignerName, b.(*RRSIG).SignerName) |
| 898 |
if x != 0 { |
| 899 |
if x < 0 { |
| 900 |
return -1 |
| 901 |
} |
| 902 |
return 1 |
| 903 |
} |
| 904 |
x = comparebase64(rr.Signature, b.(*RRSIG).Signature) |
| 905 |
if x != 0 { |
| 906 |
if x < 0 { |
| 907 |
return -1 |
| 908 |
} |
| 909 |
return 1 |
| 910 |
} |
| 911 |
return 0 |
| 912 |
} |
| 913 |
|
| 914 |
func (rr *NSEC) compare(b RR) (x int) { |
| 915 |
x = comparename(rr.NextDomain, b.(*NSEC).NextDomain) |
| 916 |
if x != 0 { |
| 917 |
if x < 0 { |
| 918 |
return -1 |
| 919 |
} |
| 920 |
return 1 |
| 921 |
} |
| 922 |
x = slices.Compare(rr.TypeBitMap, b.(*NSEC).TypeBitMap) |
| 923 |
if x != 0 { |
| 924 |
if x < 0 { |
| 925 |
return -1 |
| 926 |
} |
| 927 |
return 1 |
| 928 |
} |
| 929 |
return 0 |
| 930 |
} |
| 931 |
|
| 932 |
func (rr *DS) compare(b RR) (x int) { |
| 933 |
x = cmp.Compare(rr.KeyTag, b.(*DS).KeyTag) |
| 934 |
if x != 0 { |
| 935 |
if x < 0 { |
| 936 |
return -1 |
| 937 |
} |
| 938 |
return 1 |
| 939 |
} |
| 940 |
x = cmp.Compare(rr.Algorithm, b.(*DS).Algorithm) |
| 941 |
if x != 0 { |
| 942 |
if x < 0 { |
| 943 |
return -1 |
| 944 |
} |
| 945 |
return 1 |
| 946 |
} |
| 947 |
x = cmp.Compare(rr.DigestType, b.(*DS).DigestType) |
| 948 |
if x != 0 { |
| 949 |
if x < 0 { |
| 950 |
return -1 |
| 951 |
} |
| 952 |
return 1 |
| 953 |
} |
| 954 |
x = comparehex(rr.Digest, b.(*DS).Digest) |
| 955 |
if x != 0 { |
| 956 |
if x < 0 { |
| 957 |
return -1 |
| 958 |
} |
| 959 |
return 1 |
| 960 |
} |
| 961 |
return 0 |
| 962 |
} |
| 963 |
|
| 964 |
func (rr *KX) compare(b RR) (x int) { |
| 965 |
x = cmp.Compare(rr.Preference, b.(*KX).Preference) |
| 966 |
if x != 0 { |
| 967 |
if x < 0 { |
| 968 |
return -1 |
| 969 |
} |
| 970 |
return 1 |
| 971 |
} |
| 972 |
x = comparename(rr.Exchanger, b.(*KX).Exchanger) |
| 973 |
if x != 0 { |
| 974 |
if x < 0 { |
| 975 |
return -1 |
| 976 |
} |
| 977 |
return 1 |
| 978 |
} |
| 979 |
return 0 |
| 980 |
} |
| 981 |
|
| 982 |
func (rr *TA) compare(b RR) (x int) { |
| 983 |
x = cmp.Compare(rr.KeyTag, b.(*TA).KeyTag) |
| 984 |
if x != 0 { |
| 985 |
if x < 0 { |
| 986 |
return -1 |
| 987 |
} |
| 988 |
return 1 |
| 989 |
} |
| 990 |
x = cmp.Compare(rr.Algorithm, b.(*TA).Algorithm) |
| 991 |
if x != 0 { |
| 992 |
if x < 0 { |
| 993 |
return -1 |
| 994 |
} |
| 995 |
return 1 |
| 996 |
} |
| 997 |
x = cmp.Compare(rr.DigestType, b.(*TA).DigestType) |
| 998 |
if x != 0 { |
| 999 |
if x < 0 { |
| 1000 |
return -1 |
| 1001 |
} |
| 1002 |
return 1 |
| 1003 |
} |
| 1004 |
x = comparehex(rr.Digest, b.(*TA).Digest) |
| 1005 |
if x != 0 { |
| 1006 |
if x < 0 { |
| 1007 |
return -1 |
| 1008 |
} |
| 1009 |
return 1 |
| 1010 |
} |
| 1011 |
return 0 |
| 1012 |
} |
| 1013 |
|
| 1014 |
func (rr *TALINK) compare(b RR) (x int) { |
| 1015 |
x = comparename(rr.PreviousName, b.(*TALINK).PreviousName) |
| 1016 |
if x != 0 { |
| 1017 |
if x < 0 { |
| 1018 |
return -1 |
| 1019 |
} |
| 1020 |
return 1 |
| 1021 |
} |
| 1022 |
x = comparename(rr.NextName, b.(*TALINK).NextName) |
| 1023 |
if x != 0 { |
| 1024 |
if x < 0 { |
| 1025 |
return -1 |
| 1026 |
} |
| 1027 |
return 1 |
| 1028 |
} |
| 1029 |
return 0 |
| 1030 |
} |
| 1031 |
|
| 1032 |
func (rr *SSHFP) compare(b RR) (x int) { |
| 1033 |
x = cmp.Compare(rr.Algorithm, b.(*SSHFP).Algorithm) |
| 1034 |
if x != 0 { |
| 1035 |
if x < 0 { |
| 1036 |
return -1 |
| 1037 |
} |
| 1038 |
return 1 |
| 1039 |
} |
| 1040 |
x = cmp.Compare(rr.Type, b.(*SSHFP).Type) |
| 1041 |
if x != 0 { |
| 1042 |
if x < 0 { |
| 1043 |
return -1 |
| 1044 |
} |
| 1045 |
return 1 |
| 1046 |
} |
| 1047 |
x = comparehex(rr.FingerPrint, b.(*SSHFP).FingerPrint) |
| 1048 |
if x != 0 { |
| 1049 |
if x < 0 { |
| 1050 |
return -1 |
| 1051 |
} |
| 1052 |
return 1 |
| 1053 |
} |
| 1054 |
return 0 |
| 1055 |
} |
| 1056 |
|
| 1057 |
func (rr *DNSKEY) compare(b RR) (x int) { |
| 1058 |
x = cmp.Compare(rr.Flags, b.(*DNSKEY).Flags) |
| 1059 |
if x != 0 { |
| 1060 |
if x < 0 { |
| 1061 |
return -1 |
| 1062 |
} |
| 1063 |
return 1 |
| 1064 |
} |
| 1065 |
x = cmp.Compare(rr.Protocol, b.(*DNSKEY).Protocol) |
| 1066 |
if x != 0 { |
| 1067 |
if x < 0 { |
| 1068 |
return -1 |
| 1069 |
} |
| 1070 |
return 1 |
| 1071 |
} |
| 1072 |
x = cmp.Compare(rr.Algorithm, b.(*DNSKEY).Algorithm) |
| 1073 |
if x != 0 { |
| 1074 |
if x < 0 { |
| 1075 |
return -1 |
| 1076 |
} |
| 1077 |
return 1 |
| 1078 |
} |
| 1079 |
x = comparebase64(rr.PublicKey, b.(*DNSKEY).PublicKey) |
| 1080 |
if x != 0 { |
| 1081 |
if x < 0 { |
| 1082 |
return -1 |
| 1083 |
} |
| 1084 |
return 1 |
| 1085 |
} |
| 1086 |
return 0 |
| 1087 |
} |
| 1088 |
|
| 1089 |
func (rr *RKEY) compare(b RR) (x int) { |
| 1090 |
x = cmp.Compare(rr.Flags, b.(*RKEY).Flags) |
| 1091 |
if x != 0 { |
| 1092 |
if x < 0 { |
| 1093 |
return -1 |
| 1094 |
} |
| 1095 |
return 1 |
| 1096 |
} |
| 1097 |
x = cmp.Compare(rr.Protocol, b.(*RKEY).Protocol) |
| 1098 |
if x != 0 { |
| 1099 |
if x < 0 { |
| 1100 |
return -1 |
| 1101 |
} |
| 1102 |
return 1 |
| 1103 |
} |
| 1104 |
x = cmp.Compare(rr.Algorithm, b.(*RKEY).Algorithm) |
| 1105 |
if x != 0 { |
| 1106 |
if x < 0 { |
| 1107 |
return -1 |
| 1108 |
} |
| 1109 |
return 1 |
| 1110 |
} |
| 1111 |
x = comparebase64(rr.PublicKey, b.(*RKEY).PublicKey) |
| 1112 |
if x != 0 { |
| 1113 |
if x < 0 { |
| 1114 |
return -1 |
| 1115 |
} |
| 1116 |
return 1 |
| 1117 |
} |
| 1118 |
return 0 |
| 1119 |
} |
| 1120 |
|
| 1121 |
func (rr *NSAPPTR) compare(b RR) (x int) { |
| 1122 |
x = comparename(rr.Ptr, b.(*NSAPPTR).Ptr) |
| 1123 |
if x != 0 { |
| 1124 |
if x < 0 { |
| 1125 |
return -1 |
| 1126 |
} |
| 1127 |
return 1 |
| 1128 |
} |
| 1129 |
return 0 |
| 1130 |
} |
| 1131 |
|
| 1132 |
func (rr *NSEC3) compare(b RR) (x int) { |
| 1133 |
x = cmp.Compare(rr.Hash, b.(*NSEC3).Hash) |
| 1134 |
if x != 0 { |
| 1135 |
if x < 0 { |
| 1136 |
return -1 |
| 1137 |
} |
| 1138 |
return 1 |
| 1139 |
} |
| 1140 |
x = cmp.Compare(rr.Flags, b.(*NSEC3).Flags) |
| 1141 |
if x != 0 { |
| 1142 |
if x < 0 { |
| 1143 |
return -1 |
| 1144 |
} |
| 1145 |
return 1 |
| 1146 |
} |
| 1147 |
x = cmp.Compare(rr.Iterations, b.(*NSEC3).Iterations) |
| 1148 |
if x != 0 { |
| 1149 |
if x < 0 { |
| 1150 |
return -1 |
| 1151 |
} |
| 1152 |
return 1 |
| 1153 |
} |
| 1154 |
x = cmp.Compare(rr.SaltLength, b.(*NSEC3).SaltLength) |
| 1155 |
if x != 0 { |
| 1156 |
if x < 0 { |
| 1157 |
return -1 |
| 1158 |
} |
| 1159 |
return 1 |
| 1160 |
} |
| 1161 |
x = comparehex(rr.Salt, b.(*NSEC3).Salt) |
| 1162 |
if x != 0 { |
| 1163 |
if x < 0 { |
| 1164 |
return -1 |
| 1165 |
} |
| 1166 |
return 1 |
| 1167 |
} |
| 1168 |
x = cmp.Compare(rr.HashLength, b.(*NSEC3).HashLength) |
| 1169 |
if x != 0 { |
| 1170 |
if x < 0 { |
| 1171 |
return -1 |
| 1172 |
} |
| 1173 |
return 1 |
| 1174 |
} |
| 1175 |
x = comparebase32(rr.NextDomain, b.(*NSEC3).NextDomain) |
| 1176 |
if x != 0 { |
| 1177 |
if x < 0 { |
| 1178 |
return -1 |
| 1179 |
} |
| 1180 |
return 1 |
| 1181 |
} |
| 1182 |
x = slices.Compare(rr.TypeBitMap, b.(*NSEC3).TypeBitMap) |
| 1183 |
if x != 0 { |
| 1184 |
if x < 0 { |
| 1185 |
return -1 |
| 1186 |
} |
| 1187 |
return 1 |
| 1188 |
} |
| 1189 |
return 0 |
| 1190 |
} |
| 1191 |
|
| 1192 |
func (rr *NSEC3PARAM) compare(b RR) (x int) { |
| 1193 |
x = cmp.Compare(rr.Hash, b.(*NSEC3PARAM).Hash) |
| 1194 |
if x != 0 { |
| 1195 |
if x < 0 { |
| 1196 |
return -1 |
| 1197 |
} |
| 1198 |
return 1 |
| 1199 |
} |
| 1200 |
x = cmp.Compare(rr.Flags, b.(*NSEC3PARAM).Flags) |
| 1201 |
if x != 0 { |
| 1202 |
if x < 0 { |
| 1203 |
return -1 |
| 1204 |
} |
| 1205 |
return 1 |
| 1206 |
} |
| 1207 |
x = cmp.Compare(rr.Iterations, b.(*NSEC3PARAM).Iterations) |
| 1208 |
if x != 0 { |
| 1209 |
if x < 0 { |
| 1210 |
return -1 |
| 1211 |
} |
| 1212 |
return 1 |
| 1213 |
} |
| 1214 |
x = cmp.Compare(rr.SaltLength, b.(*NSEC3PARAM).SaltLength) |
| 1215 |
if x != 0 { |
| 1216 |
if x < 0 { |
| 1217 |
return -1 |
| 1218 |
} |
| 1219 |
return 1 |
| 1220 |
} |
| 1221 |
x = comparehex(rr.Salt, b.(*NSEC3PARAM).Salt) |
| 1222 |
if x != 0 { |
| 1223 |
if x < 0 { |
| 1224 |
return -1 |
| 1225 |
} |
| 1226 |
return 1 |
| 1227 |
} |
| 1228 |
return 0 |
| 1229 |
} |
| 1230 |
|
| 1231 |
func (rr *TKEY) compare(b RR) (x int) { |
| 1232 |
x = comparename(rr.Algorithm, b.(*TKEY).Algorithm) |
| 1233 |
if x != 0 { |
| 1234 |
if x < 0 { |
| 1235 |
return -1 |
| 1236 |
} |
| 1237 |
return 1 |
| 1238 |
} |
| 1239 |
x = cmp.Compare(rr.Inception, b.(*TKEY).Inception) |
| 1240 |
if x != 0 { |
| 1241 |
if x < 0 { |
| 1242 |
return -1 |
| 1243 |
} |
| 1244 |
return 1 |
| 1245 |
} |
| 1246 |
x = cmp.Compare(rr.Expiration, b.(*TKEY).Expiration) |
| 1247 |
if x != 0 { |
| 1248 |
if x < 0 { |
| 1249 |
return -1 |
| 1250 |
} |
| 1251 |
return 1 |
| 1252 |
} |
| 1253 |
x = cmp.Compare(rr.Mode, b.(*TKEY).Mode) |
| 1254 |
if x != 0 { |
| 1255 |
if x < 0 { |
| 1256 |
return -1 |
| 1257 |
} |
| 1258 |
return 1 |
| 1259 |
} |
| 1260 |
x = cmp.Compare(rr.Error, b.(*TKEY).Error) |
| 1261 |
if x != 0 { |
| 1262 |
if x < 0 { |
| 1263 |
return -1 |
| 1264 |
} |
| 1265 |
return 1 |
| 1266 |
} |
| 1267 |
x = cmp.Compare(rr.KeySize, b.(*TKEY).KeySize) |
| 1268 |
if x != 0 { |
| 1269 |
if x < 0 { |
| 1270 |
return -1 |
| 1271 |
} |
| 1272 |
return 1 |
| 1273 |
} |
| 1274 |
x = comparehex(rr.Key, b.(*TKEY).Key) |
| 1275 |
if x != 0 { |
| 1276 |
if x < 0 { |
| 1277 |
return -1 |
| 1278 |
} |
| 1279 |
return 1 |
| 1280 |
} |
| 1281 |
x = cmp.Compare(rr.OtherLen, b.(*TKEY).OtherLen) |
| 1282 |
if x != 0 { |
| 1283 |
if x < 0 { |
| 1284 |
return -1 |
| 1285 |
} |
| 1286 |
return 1 |
| 1287 |
} |
| 1288 |
x = comparehex(rr.OtherData, b.(*TKEY).OtherData) |
| 1289 |
if x != 0 { |
| 1290 |
if x < 0 { |
| 1291 |
return -1 |
| 1292 |
} |
| 1293 |
return 1 |
| 1294 |
} |
| 1295 |
return 0 |
| 1296 |
} |
| 1297 |
|
| 1298 |
func (rr *RFC3597) compare(b RR) (x int) { |
| 1299 |
x = comparehex(rr.RFC3597.Data, b.(*RFC3597).RFC3597.Data) |
| 1300 |
if x != 0 { |
| 1301 |
if x < 0 { |
| 1302 |
return -1 |
| 1303 |
} |
| 1304 |
return 1 |
| 1305 |
} |
| 1306 |
return 0 |
| 1307 |
} |
| 1308 |
|
| 1309 |
func (rr *URI) compare(b RR) (x int) { |
| 1310 |
x = cmp.Compare(rr.Priority, b.(*URI).Priority) |
| 1311 |
if x != 0 { |
| 1312 |
if x < 0 { |
| 1313 |
return -1 |
| 1314 |
} |
| 1315 |
return 1 |
| 1316 |
} |
| 1317 |
x = cmp.Compare(rr.Weight, b.(*URI).Weight) |
| 1318 |
if x != 0 { |
| 1319 |
if x < 0 { |
| 1320 |
return -1 |
| 1321 |
} |
| 1322 |
return 1 |
| 1323 |
} |
| 1324 |
x = len(rr.Target) - len(b.(*URI).Target) |
| 1325 |
if x != 0 { |
| 1326 |
if x < 0 { |
| 1327 |
return -1 |
| 1328 |
} |
| 1329 |
return 1 |
| 1330 |
} |
| 1331 |
x = strings.Compare(rr.Target, b.(*URI).Target) |
| 1332 |
if x != 0 { |
| 1333 |
if x < 0 { |
| 1334 |
return -1 |
| 1335 |
} |
| 1336 |
return 1 |
| 1337 |
} |
| 1338 |
return 0 |
| 1339 |
} |
| 1340 |
|
| 1341 |
func (rr *DHCID) compare(b RR) (x int) { |
| 1342 |
x = comparebase64(rr.Digest, b.(*DHCID).Digest) |
| 1343 |
if x != 0 { |
| 1344 |
if x < 0 { |
| 1345 |
return -1 |
| 1346 |
} |
| 1347 |
return 1 |
| 1348 |
} |
| 1349 |
return 0 |
| 1350 |
} |
| 1351 |
|
| 1352 |
func (rr *TLSA) compare(b RR) (x int) { |
| 1353 |
x = cmp.Compare(rr.Usage, b.(*TLSA).Usage) |
| 1354 |
if x != 0 { |
| 1355 |
if x < 0 { |
| 1356 |
return -1 |
| 1357 |
} |
| 1358 |
return 1 |
| 1359 |
} |
| 1360 |
x = cmp.Compare(rr.Selector, b.(*TLSA).Selector) |
| 1361 |
if x != 0 { |
| 1362 |
if x < 0 { |
| 1363 |
return -1 |
| 1364 |
} |
| 1365 |
return 1 |
| 1366 |
} |
| 1367 |
x = cmp.Compare(rr.MatchingType, b.(*TLSA).MatchingType) |
| 1368 |
if x != 0 { |
| 1369 |
if x < 0 { |
| 1370 |
return -1 |
| 1371 |
} |
| 1372 |
return 1 |
| 1373 |
} |
| 1374 |
x = comparehex(rr.Certificate, b.(*TLSA).Certificate) |
| 1375 |
if x != 0 { |
| 1376 |
if x < 0 { |
| 1377 |
return -1 |
| 1378 |
} |
| 1379 |
return 1 |
| 1380 |
} |
| 1381 |
return 0 |
| 1382 |
} |
| 1383 |
|
| 1384 |
func (rr *SMIMEA) compare(b RR) (x int) { |
| 1385 |
x = cmp.Compare(rr.Usage, b.(*SMIMEA).Usage) |
| 1386 |
if x != 0 { |
| 1387 |
if x < 0 { |
| 1388 |
return -1 |
| 1389 |
} |
| 1390 |
return 1 |
| 1391 |
} |
| 1392 |
x = cmp.Compare(rr.Selector, b.(*SMIMEA).Selector) |
| 1393 |
if x != 0 { |
| 1394 |
if x < 0 { |
| 1395 |
return -1 |
| 1396 |
} |
| 1397 |
return 1 |
| 1398 |
} |
| 1399 |
x = cmp.Compare(rr.MatchingType, b.(*SMIMEA).MatchingType) |
| 1400 |
if x != 0 { |
| 1401 |
if x < 0 { |
| 1402 |
return -1 |
| 1403 |
} |
| 1404 |
return 1 |
| 1405 |
} |
| 1406 |
x = comparehex(rr.Certificate, b.(*SMIMEA).Certificate) |
| 1407 |
if x != 0 { |
| 1408 |
if x < 0 { |
| 1409 |
return -1 |
| 1410 |
} |
| 1411 |
return 1 |
| 1412 |
} |
| 1413 |
return 0 |
| 1414 |
} |
| 1415 |
|
| 1416 |
func (rr *HIP) compare(b RR) (x int) { |
| 1417 |
x = cmp.Compare(rr.HitLength, b.(*HIP).HitLength) |
| 1418 |
if x != 0 { |
| 1419 |
if x < 0 { |
| 1420 |
return -1 |
| 1421 |
} |
| 1422 |
return 1 |
| 1423 |
} |
| 1424 |
x = cmp.Compare(rr.PublicKeyAlgorithm, b.(*HIP).PublicKeyAlgorithm) |
| 1425 |
if x != 0 { |
| 1426 |
if x < 0 { |
| 1427 |
return -1 |
| 1428 |
} |
| 1429 |
return 1 |
| 1430 |
} |
| 1431 |
x = cmp.Compare(rr.PublicKeyLength, b.(*HIP).PublicKeyLength) |
| 1432 |
if x != 0 { |
| 1433 |
if x < 0 { |
| 1434 |
return -1 |
| 1435 |
} |
| 1436 |
return 1 |
| 1437 |
} |
| 1438 |
x = comparehex(rr.Hit, b.(*HIP).Hit) |
| 1439 |
if x != 0 { |
| 1440 |
if x < 0 { |
| 1441 |
return -1 |
| 1442 |
} |
| 1443 |
return 1 |
| 1444 |
} |
| 1445 |
x = comparebase64(rr.PublicKey, b.(*HIP).PublicKey) |
| 1446 |
if x != 0 { |
| 1447 |
if x < 0 { |
| 1448 |
return -1 |
| 1449 |
} |
| 1450 |
return 1 |
| 1451 |
} |
| 1452 |
if len(rr.RendezvousServers) < len(b.(*HIP).RendezvousServers) { |
| 1453 |
return -1 |
| 1454 |
} |
| 1455 |
if len(rr.RendezvousServers) > len(b.(*HIP).RendezvousServers) { |
| 1456 |
return 1 |
| 1457 |
} |
| 1458 |
for i := range rr.RendezvousServers { |
| 1459 |
if x != 0 { |
| 1460 |
break |
| 1461 |
} |
| 1462 |
x = comparename(rr.RendezvousServers[i], b.(*HIP).RendezvousServers[i]) |
| 1463 |
} |
| 1464 |
if x != 0 { |
| 1465 |
if x < 0 { |
| 1466 |
return -1 |
| 1467 |
} |
| 1468 |
return 1 |
| 1469 |
} |
| 1470 |
return 0 |
| 1471 |
} |
| 1472 |
|
| 1473 |
func (rr *NINFO) compare(b RR) (x int) { |
| 1474 |
if len(rr.ZSData) < len(b.(*NINFO).ZSData) { |
| 1475 |
return -1 |
| 1476 |
} |
| 1477 |
if len(rr.ZSData) > len(b.(*NINFO).ZSData) { |
| 1478 |
return 1 |
| 1479 |
} |
| 1480 |
for i := range rr.ZSData { |
| 1481 |
if x != 0 { |
| 1482 |
break |
| 1483 |
} |
| 1484 |
x = len(rr.ZSData[i]) - len(b.(*NINFO).ZSData[i]) |
| 1485 |
if x == 0 { |
| 1486 |
x = strings.Compare(rr.ZSData[i], b.(*NINFO).ZSData[i]) |
| 1487 |
} |
| 1488 |
} |
| 1489 |
if x != 0 { |
| 1490 |
if x < 0 { |
| 1491 |
return -1 |
| 1492 |
} |
| 1493 |
return 1 |
| 1494 |
} |
| 1495 |
return 0 |
| 1496 |
} |
| 1497 |
|
| 1498 |
func (rr *NID) compare(b RR) (x int) { |
| 1499 |
x = cmp.Compare(rr.Preference, b.(*NID).Preference) |
| 1500 |
if x != 0 { |
| 1501 |
if x < 0 { |
| 1502 |
return -1 |
| 1503 |
} |
| 1504 |
return 1 |
| 1505 |
} |
| 1506 |
return 0 |
| 1507 |
} |
| 1508 |
|
| 1509 |
func (rr *L32) compare(b RR) (x int) { |
| 1510 |
x = cmp.Compare(rr.Preference, b.(*L32).Preference) |
| 1511 |
if x != 0 { |
| 1512 |
if x < 0 { |
| 1513 |
return -1 |
| 1514 |
} |
| 1515 |
return 1 |
| 1516 |
} |
| 1517 |
x = rr.Locator32.Compare(b.(*L32).Locator32) |
| 1518 |
if x != 0 { |
| 1519 |
if x < 0 { |
| 1520 |
return -1 |
| 1521 |
} |
| 1522 |
return 1 |
| 1523 |
} |
| 1524 |
return 0 |
| 1525 |
} |
| 1526 |
|
| 1527 |
func (rr *L64) compare(b RR) (x int) { |
| 1528 |
x = cmp.Compare(rr.Preference, b.(*L64).Preference) |
| 1529 |
if x != 0 { |
| 1530 |
if x < 0 { |
| 1531 |
return -1 |
| 1532 |
} |
| 1533 |
return 1 |
| 1534 |
} |
| 1535 |
return 0 |
| 1536 |
} |
| 1537 |
|
| 1538 |
func (rr *LP) compare(b RR) (x int) { |
| 1539 |
x = cmp.Compare(rr.Preference, b.(*LP).Preference) |
| 1540 |
if x != 0 { |
| 1541 |
if x < 0 { |
| 1542 |
return -1 |
| 1543 |
} |
| 1544 |
return 1 |
| 1545 |
} |
| 1546 |
x = comparename(rr.Fqdn, b.(*LP).Fqdn) |
| 1547 |
if x != 0 { |
| 1548 |
if x < 0 { |
| 1549 |
return -1 |
| 1550 |
} |
| 1551 |
return 1 |
| 1552 |
} |
| 1553 |
return 0 |
| 1554 |
} |
| 1555 |
|
| 1556 |
func (rr *EUI48) compare(b RR) (x int) { |
| 1557 |
x = cmp.Compare(rr.Address, b.(*EUI48).Address) |
| 1558 |
if x != 0 { |
| 1559 |
if x < 0 { |
| 1560 |
return -1 |
| 1561 |
} |
| 1562 |
return 1 |
| 1563 |
} |
| 1564 |
return 0 |
| 1565 |
} |
| 1566 |
|
| 1567 |
func (rr *EUI64) compare(b RR) (x int) { |
| 1568 |
x = cmp.Compare(rr.Address, b.(*EUI64).Address) |
| 1569 |
if x != 0 { |
| 1570 |
if x < 0 { |
| 1571 |
return -1 |
| 1572 |
} |
| 1573 |
return 1 |
| 1574 |
} |
| 1575 |
return 0 |
| 1576 |
} |
| 1577 |
|
| 1578 |
func (rr *CAA) compare(b RR) (x int) { |
| 1579 |
x = cmp.Compare(rr.Flag, b.(*CAA).Flag) |
| 1580 |
if x != 0 { |
| 1581 |
if x < 0 { |
| 1582 |
return -1 |
| 1583 |
} |
| 1584 |
return 1 |
| 1585 |
} |
| 1586 |
x = len(rr.Tag) - len(b.(*CAA).Tag) |
| 1587 |
if x != 0 { |
| 1588 |
if x < 0 { |
| 1589 |
return -1 |
| 1590 |
} |
| 1591 |
return 1 |
| 1592 |
} |
| 1593 |
x = strings.Compare(rr.Tag, b.(*CAA).Tag) |
| 1594 |
if x != 0 { |
| 1595 |
if x < 0 { |
| 1596 |
return -1 |
| 1597 |
} |
| 1598 |
return 1 |
| 1599 |
} |
| 1600 |
x = len(rr.Value) - len(b.(*CAA).Value) |
| 1601 |
if x != 0 { |
| 1602 |
if x < 0 { |
| 1603 |
return -1 |
| 1604 |
} |
| 1605 |
return 1 |
| 1606 |
} |
| 1607 |
x = strings.Compare(rr.Value, b.(*CAA).Value) |
| 1608 |
if x != 0 { |
| 1609 |
if x < 0 { |
| 1610 |
return -1 |
| 1611 |
} |
| 1612 |
return 1 |
| 1613 |
} |
| 1614 |
return 0 |
| 1615 |
} |
| 1616 |
|
| 1617 |
func (rr *UID) compare(b RR) (x int) { |
| 1618 |
x = cmp.Compare(rr.Uid, b.(*UID).Uid) |
| 1619 |
if x != 0 { |
| 1620 |
if x < 0 { |
| 1621 |
return -1 |
| 1622 |
} |
| 1623 |
return 1 |
| 1624 |
} |
| 1625 |
return 0 |
| 1626 |
} |
| 1627 |
|
| 1628 |
func (rr *GID) compare(b RR) (x int) { |
| 1629 |
x = cmp.Compare(rr.Gid, b.(*GID).Gid) |
| 1630 |
if x != 0 { |
| 1631 |
if x < 0 { |
| 1632 |
return -1 |
| 1633 |
} |
| 1634 |
return 1 |
| 1635 |
} |
| 1636 |
return 0 |
| 1637 |
} |
| 1638 |
|
| 1639 |
func (rr *UINFO) compare(b RR) (x int) { |
| 1640 |
x = len(rr.Uinfo) - len(b.(*UINFO).Uinfo) |
| 1641 |
if x != 0 { |
| 1642 |
if x < 0 { |
| 1643 |
return -1 |
| 1644 |
} |
| 1645 |
return 1 |
| 1646 |
} |
| 1647 |
x = strings.Compare(rr.Uinfo, b.(*UINFO).Uinfo) |
| 1648 |
if x != 0 { |
| 1649 |
if x < 0 { |
| 1650 |
return -1 |
| 1651 |
} |
| 1652 |
return 1 |
| 1653 |
} |
| 1654 |
return 0 |
| 1655 |
} |
| 1656 |
|
| 1657 |
func (rr *EID) compare(b RR) (x int) { |
| 1658 |
x = comparehex(rr.Endpoint, b.(*EID).Endpoint) |
| 1659 |
if x != 0 { |
| 1660 |
if x < 0 { |
| 1661 |
return -1 |
| 1662 |
} |
| 1663 |
return 1 |
| 1664 |
} |
| 1665 |
return 0 |
| 1666 |
} |
| 1667 |
|
| 1668 |
func (rr *NIMLOC) compare(b RR) (x int) { |
| 1669 |
x = comparehex(rr.Locator, b.(*NIMLOC).Locator) |
| 1670 |
if x != 0 { |
| 1671 |
if x < 0 { |
| 1672 |
return -1 |
| 1673 |
} |
| 1674 |
return 1 |
| 1675 |
} |
| 1676 |
return 0 |
| 1677 |
} |
| 1678 |
|
| 1679 |
func (rr *OPENPGPKEY) compare(b RR) (x int) { |
| 1680 |
x = comparebase64(rr.PublicKey, b.(*OPENPGPKEY).PublicKey) |
| 1681 |
if x != 0 { |
| 1682 |
if x < 0 { |
| 1683 |
return -1 |
| 1684 |
} |
| 1685 |
return 1 |
| 1686 |
} |
| 1687 |
return 0 |
| 1688 |
} |
| 1689 |
|
| 1690 |
func (rr *CSYNC) compare(b RR) (x int) { |
| 1691 |
x = cmp.Compare(rr.Serial, b.(*CSYNC).Serial) |
| 1692 |
if x != 0 { |
| 1693 |
if x < 0 { |
| 1694 |
return -1 |
| 1695 |
} |
| 1696 |
return 1 |
| 1697 |
} |
| 1698 |
x = cmp.Compare(rr.Flags, b.(*CSYNC).Flags) |
| 1699 |
if x != 0 { |
| 1700 |
if x < 0 { |
| 1701 |
return -1 |
| 1702 |
} |
| 1703 |
return 1 |
| 1704 |
} |
| 1705 |
x = slices.Compare(rr.TypeBitMap, b.(*CSYNC).TypeBitMap) |
| 1706 |
if x != 0 { |
| 1707 |
if x < 0 { |
| 1708 |
return -1 |
| 1709 |
} |
| 1710 |
return 1 |
| 1711 |
} |
| 1712 |
return 0 |
| 1713 |
} |
| 1714 |
|
| 1715 |
func (rr *ZONEMD) compare(b RR) (x int) { |
| 1716 |
x = cmp.Compare(rr.Serial, b.(*ZONEMD).Serial) |
| 1717 |
if x != 0 { |
| 1718 |
if x < 0 { |
| 1719 |
return -1 |
| 1720 |
} |
| 1721 |
return 1 |
| 1722 |
} |
| 1723 |
x = cmp.Compare(rr.Scheme, b.(*ZONEMD).Scheme) |
| 1724 |
if x != 0 { |
| 1725 |
if x < 0 { |
| 1726 |
return -1 |
| 1727 |
} |
| 1728 |
return 1 |
| 1729 |
} |
| 1730 |
x = cmp.Compare(rr.Hash, b.(*ZONEMD).Hash) |
| 1731 |
if x != 0 { |
| 1732 |
if x < 0 { |
| 1733 |
return -1 |
| 1734 |
} |
| 1735 |
return 1 |
| 1736 |
} |
| 1737 |
x = comparehex(rr.Digest, b.(*ZONEMD).Digest) |
| 1738 |
if x != 0 { |
| 1739 |
if x < 0 { |
| 1740 |
return -1 |
| 1741 |
} |
| 1742 |
return 1 |
| 1743 |
} |
| 1744 |
return 0 |
| 1745 |
} |
| 1746 |
|
| 1747 |
func (rr *SVCB) compare(b RR) (x int) { |
| 1748 |
x = cmp.Compare(rr.Priority, b.(*SVCB).Priority) |
| 1749 |
if x != 0 { |
| 1750 |
if x < 0 { |
| 1751 |
return -1 |
| 1752 |
} |
| 1753 |
return 1 |
| 1754 |
} |
| 1755 |
x = comparename(rr.Target, b.(*SVCB).Target) |
| 1756 |
if x != 0 { |
| 1757 |
if x < 0 { |
| 1758 |
return -1 |
| 1759 |
} |
| 1760 |
return 1 |
| 1761 |
} |
| 1762 |
x = comparepair(rr.Value, b.(*SVCB).Value) |
| 1763 |
if x != 0 { |
| 1764 |
if x < 0 { |
| 1765 |
return -1 |
| 1766 |
} |
| 1767 |
return 1 |
| 1768 |
} |
| 1769 |
return 0 |
| 1770 |
} |
| 1771 |
|
| 1772 |
func (rr *DELEG) compare(b RR) (x int) { |
| 1773 |
x = compareinfo(rr.Value, b.(*DELEG).Value) |
| 1774 |
if x != 0 { |
| 1775 |
if x < 0 { |
| 1776 |
return -1 |
| 1777 |
} |
| 1778 |
return 1 |
| 1779 |
} |
| 1780 |
return 0 |
| 1781 |
} |
| 1782 |
|
| 1783 |
func (rr *DSYNC) compare(b RR) (x int) { |
| 1784 |
x = cmp.Compare(rr.Type, b.(*DSYNC).Type) |
| 1785 |
if x != 0 { |
| 1786 |
if x < 0 { |
| 1787 |
return -1 |
| 1788 |
} |
| 1789 |
return 1 |
| 1790 |
} |
| 1791 |
x = cmp.Compare(rr.Scheme, b.(*DSYNC).Scheme) |
| 1792 |
if x != 0 { |
| 1793 |
if x < 0 { |
| 1794 |
return -1 |
| 1795 |
} |
| 1796 |
return 1 |
| 1797 |
} |
| 1798 |
x = cmp.Compare(rr.Port, b.(*DSYNC).Port) |
| 1799 |
if x != 0 { |
| 1800 |
if x < 0 { |
| 1801 |
return -1 |
| 1802 |
} |
| 1803 |
return 1 |
| 1804 |
} |
| 1805 |
x = comparename(rr.Target, b.(*DSYNC).Target) |
| 1806 |
if x != 0 { |
| 1807 |
if x < 0 { |
| 1808 |
return -1 |
| 1809 |
} |
| 1810 |
return 1 |
| 1811 |
} |
| 1812 |
return 0 |
| 1813 |
} |
| 1814 |
|
| 1815 |
func (rr *TSIG) compare(b RR) (x int) { |
| 1816 |
x = comparename(rr.Algorithm, b.(*TSIG).Algorithm) |
| 1817 |
if x != 0 { |
| 1818 |
if x < 0 { |
| 1819 |
return -1 |
| 1820 |
} |
| 1821 |
return 1 |
| 1822 |
} |
| 1823 |
x = cmp.Compare(rr.TimeSigned, b.(*TSIG).TimeSigned) |
| 1824 |
if x != 0 { |
| 1825 |
if x < 0 { |
| 1826 |
return -1 |
| 1827 |
} |
| 1828 |
return 1 |
| 1829 |
} |
| 1830 |
x = cmp.Compare(rr.Fudge, b.(*TSIG).Fudge) |
| 1831 |
if x != 0 { |
| 1832 |
if x < 0 { |
| 1833 |
return -1 |
| 1834 |
} |
| 1835 |
return 1 |
| 1836 |
} |
| 1837 |
x = cmp.Compare(rr.MACSize, b.(*TSIG).MACSize) |
| 1838 |
if x != 0 { |
| 1839 |
if x < 0 { |
| 1840 |
return -1 |
| 1841 |
} |
| 1842 |
return 1 |
| 1843 |
} |
| 1844 |
x = comparehex(rr.MAC, b.(*TSIG).MAC) |
| 1845 |
if x != 0 { |
| 1846 |
if x < 0 { |
| 1847 |
return -1 |
| 1848 |
} |
| 1849 |
return 1 |
| 1850 |
} |
| 1851 |
x = cmp.Compare(rr.OrigID, b.(*TSIG).OrigID) |
| 1852 |
if x != 0 { |
| 1853 |
if x < 0 { |
| 1854 |
return -1 |
| 1855 |
} |
| 1856 |
return 1 |
| 1857 |
} |
| 1858 |
x = cmp.Compare(rr.Error, b.(*TSIG).Error) |
| 1859 |
if x != 0 { |
| 1860 |
if x < 0 { |
| 1861 |
return -1 |
| 1862 |
} |
| 1863 |
return 1 |
| 1864 |
} |
| 1865 |
x = cmp.Compare(rr.OtherLen, b.(*TSIG).OtherLen) |
| 1866 |
if x != 0 { |
| 1867 |
if x < 0 { |
| 1868 |
return -1 |
| 1869 |
} |
| 1870 |
return 1 |
| 1871 |
} |
| 1872 |
x = comparehex(rr.OtherData, b.(*TSIG).OtherData) |
| 1873 |
if x != 0 { |
| 1874 |
if x < 0 { |
| 1875 |
return -1 |
| 1876 |
} |
| 1877 |
return 1 |
| 1878 |
} |
| 1879 |
return 0 |
| 1880 |
} |
| 1881 |
|
| 1882 |
func (rr *NXNAME) compare(b RR) (x int) { |
| 1883 |
return 0 |
| 1884 |
} |
| 1885 |
|
| 1886 |
func (rr *SPF) compare(b RR) (x int) { |
| 1887 |
return rr.TXT.compare(&b.(*SPF).TXT) |
| 1888 |
} |
| 1889 |
|
| 1890 |
func (rr *AVC) compare(b RR) (x int) { |
| 1891 |
return rr.TXT.compare(&b.(*AVC).TXT) |
| 1892 |
} |
| 1893 |
|
| 1894 |
func (rr *WALLET) compare(b RR) (x int) { |
| 1895 |
return rr.TXT.compare(&b.(*WALLET).TXT) |
| 1896 |
} |
| 1897 |
|
| 1898 |
func (rr *CLA) compare(b RR) (x int) { |
| 1899 |
return rr.TXT.compare(&b.(*CLA).TXT) |
| 1900 |
} |
| 1901 |
|
| 1902 |
func (rr *SIG) compare(b RR) (x int) { |
| 1903 |
return rr.RRSIG.compare(&b.(*SIG).RRSIG) |
| 1904 |
} |
| 1905 |
|
| 1906 |
func (rr *NXT) compare(b RR) (x int) { |
| 1907 |
return rr.NSEC.compare(&b.(*NXT).NSEC) |
| 1908 |
} |
| 1909 |
|
| 1910 |
func (rr *DLV) compare(b RR) (x int) { |
| 1911 |
return rr.DS.compare(&b.(*DLV).DS) |
| 1912 |
} |
| 1913 |
|
| 1914 |
func (rr *CDS) compare(b RR) (x int) { |
| 1915 |
return rr.DS.compare(&b.(*CDS).DS) |
| 1916 |
} |
| 1917 |
|
| 1918 |
func (rr *KEY) compare(b RR) (x int) { |
| 1919 |
return rr.DNSKEY.compare(&b.(*KEY).DNSKEY) |
| 1920 |
} |
| 1921 |
|
| 1922 |
func (rr *CDNSKEY) compare(b RR) (x int) { |
| 1923 |
return rr.DNSKEY.compare(&b.(*CDNSKEY).DNSKEY) |
| 1924 |
} |
| 1925 |
|
| 1926 |
func (rr *OPT) compare(b RR) (x int) { |
| 1927 |
return 0 |
| 1928 |
} |
| 1929 |
|
| 1930 |
func (rr *RESINFO) compare(b RR) (x int) { |
| 1931 |
return rr.TXT.compare(&b.(*RESINFO).TXT) |
| 1932 |
} |
| 1933 |
|
| 1934 |
func (rr *HTTPS) compare(b RR) (x int) { |
| 1935 |
return rr.SVCB.compare(&b.(*HTTPS).SVCB) |
| 1936 |
} |
| 1937 |
|
| 1938 |
func (rr *DELEGPARAM) compare(b RR) (x int) { |
| 1939 |
return rr.DELEG.compare(&b.(*DELEGPARAM).DELEG) |
| 1940 |
} |
| 1941 |
|
| 1942 |
func (rr *ANY) compare(b RR) (x int) { |
| 1943 |
return 0 |
| 1944 |
} |
| 1945 |
|
| 1946 |
func (rr *AXFR) compare(b RR) (x int) { |
| 1947 |
return 0 |
| 1948 |
} |
| 1949 |
|
| 1950 |
func (rr *IXFR) compare(b RR) (x int) { |
| 1951 |
return 0 |
| 1952 |
} |