Ticket #94: scapy.streamsocket.patch
| File scapy.streamsocket.patch, 390 bytes (added by anonymous, 9 months ago) |
|---|
-
scapy.py
old new 10409 10409 def recv(self, x=MTU): 10410 10410 pkt = self.ins.recv(x, socket.MSG_PEEK) 10411 10411 x = len(pkt) 10412 if x == 0: 10413 return "" 10412 10414 pkt = self.basecls(pkt) 10413 10415 pad = pkt[Padding] 10414 10416 if pad is not None and pad.underlayer is not None: