Python data.MTU Examples
The following are 30
code examples of data.MTU().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
data
, or try the search function
.
Example #1
Source File: utils.py From POC-EXP with GNU General Public License v3.0 | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #2
Source File: utils.py From CyberScan with GNU General Public License v3.0 | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #3
Source File: utils.py From dash-hack with MIT License | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #4
Source File: utils.py From dash-hack with MIT License | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #5
Source File: utils.py From smod-1 with GNU General Public License v2.0 | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #6
Source File: utils.py From isip with MIT License | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #7
Source File: utils.py From mptcp-abuse with GNU General Public License v2.0 | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #8
Source File: utils.py From CVE-2016-6366 with MIT License | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #9
Source File: utils.py From dash-hack with MIT License | 6 votes |
def read_packet(self, size=MTU): rp = RawPcapReader.read_packet(self,size) if rp is None: return None s,(sec,usec,wirelen) = rp try: p = self.LLcls(s) except KeyboardInterrupt: raise except: if conf.debug_dissector: raise p = conf.raw_layer(s) p.time = sec+0.000001*usec return p
Example #10
Source File: automaton.py From isip with MIT License | 5 votes |
def recv(self, n=MTU): r = self.spa.recv(n) if self.proto is not None: r = self.proto(r) return r
Example #11
Source File: utils.py From dash-hack with MIT License | 5 votes |
def read_packet(self, size=MTU): """return a single packet read from the file returns None when no more packets are available """ hdr = self.f.read(16) if len(hdr) < 16: return None sec,usec,caplen,wirelen = struct.unpack(self.endian+"IIII", hdr) s = self.f.read(caplen)[:MTU] return s,(sec,usec,wirelen) # caplen = len(s)
Example #12
Source File: utils.py From dash-hack with MIT License | 5 votes |
def recv(self, size=MTU): """ Emulate a socket """ return self.read_packet(size)[0]
Example #13
Source File: utils.py From dash-hack with MIT License | 5 votes |
def recv(self, size=MTU): return self.read_packet(size)
Example #14
Source File: automaton.py From dash-hack with MIT License | 5 votes |
def recv(self, n=MTU): r = self.spa.recv(n) if self.proto is not None: r = self.proto(r) return r
Example #15
Source File: utils.py From dash-hack with MIT License | 5 votes |
def read_packet(self, size=MTU): """return a single packet read from the file returns None when no more packets are available """ hdr = self.f.read(16) if len(hdr) < 16: return None sec,usec,caplen,wirelen = struct.unpack(self.endian+"IIII", hdr) s = self.f.read(caplen)[:MTU] return s,(sec,usec,wirelen) # caplen = len(s)
Example #16
Source File: utils.py From dash-hack with MIT License | 5 votes |
def recv(self, size=MTU): """ Emulate a socket """ return self.read_packet(size)[0]
Example #17
Source File: utils.py From dash-hack with MIT License | 5 votes |
def recv(self, size=MTU): return self.read_packet(size)
Example #18
Source File: utils.py From dash-hack with MIT License | 5 votes |
def recv(self, size=MTU): """ Emulate a socket """ return self.read_packet(size)[0]
Example #19
Source File: utils.py From isip with MIT License | 5 votes |
def read_packet(self, size=MTU): """return a single packet read from the file returns None when no more packets are available """ hdr = self.f.read(16) if len(hdr) < 16: return None sec,usec,caplen,wirelen = struct.unpack(self.endian+"IIII", hdr) s = self.f.read(caplen)[:MTU] return s,(sec,usec,wirelen) # caplen = len(s)
Example #20
Source File: utils.py From isip with MIT License | 5 votes |
def recv(self, size=MTU): """ Emulate a socket """ return self.read_packet(size)[0]
Example #21
Source File: utils.py From isip with MIT License | 5 votes |
def recv(self, size=MTU): return self.read_packet(size)
Example #22
Source File: automaton.py From POC-EXP with GNU General Public License v3.0 | 5 votes |
def recv(self, n=MTU): r = self.spa.recv(n) if self.proto is not None: r = self.proto(r) return r
Example #23
Source File: utils.py From POC-EXP with GNU General Public License v3.0 | 5 votes |
def read_packet(self, size=MTU): """return a single packet read from the file returns None when no more packets are available """ hdr = self.f.read(16) if len(hdr) < 16: return None sec,usec,caplen,wirelen = struct.unpack(self.endian+"IIII", hdr) s = self.f.read(caplen)[:MTU] return s,(sec,usec,wirelen) # caplen = len(s)
Example #24
Source File: utils.py From POC-EXP with GNU General Public License v3.0 | 5 votes |
def recv(self, size=MTU): """ Emulate a socket """ return self.read_packet(size)[0]
Example #25
Source File: utils.py From POC-EXP with GNU General Public License v3.0 | 5 votes |
def recv(self, size=MTU): return self.read_packet(size)
Example #26
Source File: utils.py From CVE-2016-6366 with MIT License | 5 votes |
def recv(self, size=MTU): """ Emulate a socket """ return self.read_packet(size)[0]
Example #27
Source File: utils.py From CyberScan with GNU General Public License v3.0 | 5 votes |
def read_packet(self, size=MTU): """return a single packet read from the file returns None when no more packets are available """ hdr = self.f.read(16) if len(hdr) < 16: return None sec,usec,caplen,wirelen = struct.unpack(self.endian+"IIII", hdr) s = self.f.read(caplen)[:MTU] return s,(sec,usec,wirelen) # caplen = len(s)
Example #28
Source File: utils.py From CyberScan with GNU General Public License v3.0 | 5 votes |
def recv(self, size=MTU): """ Emulate a socket """ return self.read_packet(size)[0]
Example #29
Source File: utils.py From CyberScan with GNU General Public License v3.0 | 5 votes |
def recv(self, size=MTU): return self.read_packet(size)
Example #30
Source File: automaton.py From smod-1 with GNU General Public License v2.0 | 5 votes |
def recv(self, n=MTU): r = self.spa.recv(n) if self.proto is not None: r = self.proto(r) return r