Ejemplo n.º 1
0
 /** <summary>
  *      Checks if a packet is an ingress Nintendo packet.
  *  </summary>
  *  <param name="packet">
  *      A packet.
  *  </param>
  *  <returns>
  *      True if the packet is an ingress Nintendo packet, false otherwise.
  *  </returns>
  */
 private bool IsIngressNintendoPacket(Packet packet)
 {
     return(Nintendo.IsNintendoOUI(((EthernetPacket)packet).DestinationHwAddress.ToString()));
 }
Ejemplo n.º 2
0
 /** <summary>
  *      Checks if a packet is an egress Nintendo packet.
  *  </summary>
  *  <param name="packet">
  *      A packet.
  *  </param>
  *  <returns>
  *      True if the packet is an egress Nintendo packet, false otherwise.
  *  </returns>
  */
 private bool IsEgressNintendoPacket(Packet packet)
 {
     return(Nintendo.IsNintendoOUI(((EthernetPacket)packet).SourceHwAddress.ToString()));
 }