Exemple #1
0
def _unfix_ethertype(v):
    if v <= 0x05DC:
        return v

    # NOTE: This may just result in a hex string.  In that case, we might
    #      want to just use a number.
    return ethtype_to_str(v)
Exemple #2
0
def _unfix_ethertype (v):
  if v <= 0x05dc:
    return v
  #NOTE: This may just result in a hex string.  In that case, we might
  #      want to just use a number.
  """
  Este pode apenas resultar em uma string hexadecimal . Nesse caso , poderíamos
  Quer usar apenas um número.
  """
  return ethtype_to_str(v)
Exemple #3
0
def _unfix_ethertype(v):
    if v <= 0x05dc:
        return v
    #NOTE: This may just result in a hex string.  In that case, we might
    #      want to just use a number.
    return ethtype_to_str(v)
 def processInPacket(self, pkt):
     log.debug('pkt type = %s' % ethtype_to_str(pkt.type))
     return pkt