def get_packet_type()

in tools/tftp_tester.py [0:0]


def get_packet_type(pkt):
    return TFTP(int.from_bytes(pkt[0:2], byteorder="big"))