public void PacketDrop(IDhcpServerPacket Packet, PacketDropControlCodes ControlCode, DhcpServerIpAddress ServerAddress, ref bool StopPropagation) { try { var sb = new StringBuilder(); sb.AppendLine("PACKET DROP:"); sb.AppendLine($" Transaction Id: {Packet.TransactionId}"); sb.AppendLine($" Parameters:"); sb.AppendLine($" Control Code: {ControlCode}"); sb.AppendLine("---------------------"); WriteLog(sb.ToString()); } catch (Exception ex) { WriteLog($"PACKET DROP ERROR: {ex.Message} [{ex.GetType().Name}]"); WriteLog(ex.StackTrace); throw; } }
public void PacketDrop(IDhcpServerPacket Packet, PacketDropControlCodes ControlCode, DhcpServerIpAddress ServerAddress, ref bool StopPropagation) { packetDropHandler.PacketDrop(Packet, ControlCode, ServerAddress, ref StopPropagation); }