(x, y dnsmessage.Name)
| 564 | } |
| 565 | |
| 566 | func equalASCIIName(x, y dnsmessage.Name) bool { |
| 567 | if x.Length != y.Length { |
| 568 | return false |
| 569 | } |
| 570 | for i := 0; i < int(x.Length); i++ { |
| 571 | a := x.Data[i] |
| 572 | b := y.Data[i] |
| 573 | if 'A' <= a && a <= 'Z' { |
| 574 | a += 0x20 |
| 575 | } |
| 576 | if 'A' <= b && b <= 'Z' { |
| 577 | b += 0x20 |
| 578 | } |
| 579 | if a != b { |
| 580 | return false |
| 581 | } |
| 582 | } |
| 583 | return true |
| 584 | } |
| 585 | |
| 586 | func checkResponse(reqID uint16, reqQues dnsmessage.Question, respHdr dnsmessage.Header, respQues dnsmessage.Question) bool { |
| 587 | if !respHdr.Response { |