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 _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)
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