in tools/tftp_tester.py [0:0]
def gen_ACK(self, num): """ACK packet {num} and the expected response of type DATA""" b = bytearray(as2bytes(TFTP.ACK)) b.extend(as2bytes(num)) return b