BACnet.Ethernet.EthernetPort._isOutboundPacket C# (CSharp) Method

_isOutboundPacket() private method

Determines whether a packet contains an outgoing packet sent by this device
private _isOutboundPacket ( byte buffer ) : bool
buffer byte The buffer to check
return bool
        private bool _isOutboundPacket(byte[] buffer)
        {
            // check to see if the source mac 100%
            // matches the device mac address of the local device

            for(int i = 0; i < 6; i++)
            {
                if (buffer[6 + i] != _deviceMac[i])
                    return false;
            }

            return true;
        }