MCPcopy Create free account
hub / github.com/secdev/scapy / received_ack

Method received_ack

scapy/layers/tftp.py:300–305  ·  view source on GitHub ↗
(self, pkt)

Source from the content-addressed store, hash-verified

298
299 @ATMT.receive_condition(WAITING_ACK)
300 def received_ack(self, pkt):
301 if TFTP_ACK in pkt and pkt[TFTP_ACK].block == self.awaiting:
302 if self.server_tid is None:
303 self.server_tid = pkt[UDP].sport
304 self.l3[UDP].dport = self.server_tid
305 raise self.SEND_DATA()
306
307 @ATMT.receive_condition(WAITING_ACK)
308 def received_error(self, pkt):

Callers

nothing calls this directly

Calls 1

SEND_DATAMethod · 0.95

Tested by

no test coverage detected