* Helper for logging receiving invalid packets. * @param type The received packet type. * @param client_addr The address we received the packet from. */
| 185 | * @param client_addr The address we received the packet from. |
| 186 | */ |
| 187 | void NetworkUDPSocketHandler::ReceiveInvalidPacket(PacketUDPType type, NetworkAddress &client_addr) |
| 188 | { |
| 189 | Debug(net, 0, "[udp] Received packet type {} on wrong port from {}", type, client_addr.GetAddressAsString()); |
| 190 | } |
| 191 | |
| 192 | void NetworkUDPSocketHandler::Receive_CLIENT_FIND_SERVER(Packet &, NetworkAddress &client_addr) { this->ReceiveInvalidPacket(PACKET_UDP_CLIENT_FIND_SERVER, client_addr); } |
| 193 | void NetworkUDPSocketHandler::Receive_SERVER_RESPONSE(Packet &, NetworkAddress &client_addr) { this->ReceiveInvalidPacket(PACKET_UDP_SERVER_RESPONSE, client_addr); } |
no test coverage detected