Esempio n. 1
0
        private void HandleDhcpResponseReceived(IList <DhcpPacket> results, DhcpPacketEventArgs args, uint transactionId)
        {
            if (args.Packet.TransactionId == transactionId)
            {
                _logger.LogDebug("Received a DHCP Packet for transaction {0}", transactionId);

                results.Add(args.Packet);
            }
        }
Esempio n. 2
0
        private void OnPacketReceived(DhcpPacket packet)
        {
            var args = new DhcpPacketEventArgs(packet);

            PacketReceived?.Invoke(this, args);
        }