show dns response in ip stack simulator debug

This commit is contained in:
Martin Michelsen
2022-08-25 19:25:27 -07:00
parent eaf1ad036c
commit b612d50c17
+1
View File
@@ -432,6 +432,7 @@ void IPStackSimulator::on_client_udp_frame(
if (this->state->ip_stack_debug) { if (this->state->ip_stack_debug) {
string remote_str = this->str_for_ipv4_netloc(fi.ipv4->src_addr, fi.udp->src_port); string remote_str = this->str_for_ipv4_netloc(fi.ipv4->src_addr, fi.udp->src_port);
ip_stack_simulator_log.info("Sending DNS response to %s", remote_str.c_str()); ip_stack_simulator_log.info("Sending DNS response to %s", remote_str.c_str());
print_data(stderr, r_data);
} }
uint16_t frame_size = sizeof(r_ether) + sizeof(r_ipv4) + sizeof(r_udp) + r_data.size(); uint16_t frame_size = sizeof(r_ether) + sizeof(r_ipv4) + sizeof(r_udp) + r_data.size();