Skip to content
Snippets Groups Projects
Commit 3238df95 authored by Pierre Lalet's avatar Pierre Lalet Committed by GitHub
Browse files

Merge pull request #615 from phil777/master

Added some pipe objects
parents e936a205 7dbb000b
No related branches found
No related tags found
No related merge requests found
......@@ -318,7 +318,7 @@ class TFTP_WRQ_server(Automaton):
self.ip = ip.dst
self.dst = ip.src
self.filename = pkt[TFTP_WRQ].filename
options = pkt[TFTP_Options]
options = pkt.getlayer(TFTP_Options)
self.l3 = IP(src=ip.dst, dst=ip.src)/UDP(sport=self.my_tid, dport=pkt.sport)/TFTP()
if options is None:
self.last_packet = self.l3/TFTP_ACK(block=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment