示例#1
0
        /// <summary>
        /// Add packet.
        /// </summary>
        /// <param name="packet">IP packet.</param>
        internal static void AddPacket(IPPacket packet)
        {
            EnsureQueueExists();
            NetworkDevice nic = IPConfig.FindInterface(packet.SourceIP);

            packet.SourceMAC = nic.MACAddress;
            queue.Add(new BufferEntry(nic, packet));
        }