(self, flow: dns.DNSFlow, err: str)
| 101 | yield commands.SendData(self.context.client, packed) |
| 102 | |
| 103 | def handle_error(self, flow: dns.DNSFlow, err: str) -> layer.CommandGenerator[None]: |
| 104 | flow.error = mflow.Error(err) |
| 105 | yield DnsErrorHook(flow) |
| 106 | servfail = flow.request.fail(response_codes.SERVFAIL) |
| 107 | yield commands.SendData( |
| 108 | self.context.client, |
| 109 | pack_message(servfail, flow.client_conn.transport_protocol), |
| 110 | ) |
| 111 | |
| 112 | def unpack_message(self, data: bytes, from_client: bool) -> List[dns.DNSMessage]: |
| 113 | msgs: List[dns.DNSMessage] = [] |
no test coverage detected