Home
last modified time | relevance | path

Searched refs:_pkt (Results 1 – 23 of 23) sorted by relevance

/external/scapy/scapy/layers/
Dvrrp.py43 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
44 if _pkt and len(_pkt) >= 9:
45 ver_n_type = orb(_pkt[0])
79 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
80 if _pkt and len(_pkt) >= 16:
81 ver_n_type = orb(_pkt[0])
Dppp.py210 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
211 if _pkt and orb(_pkt[0]) == 0xff:
257 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
258 if _pkt:
259 o = orb(_pkt[0])
325 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
326 if _pkt:
327 o = orb(_pkt[0])
377 def dispatch_hook(cls, _pkt = None, *args, **kargs): argument
378 if _pkt:
[all …]
Dradius.py250 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
255 if _pkt:
256 attr_type = orb(_pkt[0])
289 def __init__(self, _pkt="", post_transform=None, _internal=0, _underlayer=None, **fields): argument
291 _pkt,
498 def __init__(self, _pkt="", post_transform=None, _internal=0, _underlayer=None, **fields): argument
500 _pkt,
Deap.py232 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
233 if _pkt:
234 c = orb(_pkt[0])
235 if c in [1, 2] and len(_pkt) >= 5:
236 t = orb(_pkt[4])
453 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
459 if _pkt is not None:
460 ptype = orb(_pkt[0])
Dl2.py164 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
165 if _pkt and len(_pkt) >= 14:
166 if struct.unpack("!H", _pkt[12:14])[0] <= 1500:
186 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
187 if _pkt and len(_pkt) >= 14:
188 if struct.unpack("!H", _pkt[12:14])[0] > 1500:
345 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
346 if _pkt and struct.unpack("!H", _pkt[2:4])[0] == 0x880b:
Dnetflow.py340 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
341 if _pkt:
342 if _pkt[:2] == b"\x00\x01":
Dpptp.py70 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
71 if _pkt:
72 o = orb(_pkt[9])
Dlltd.py297 def dispatch_hook(cls, _pkt=None, *_, **kargs): argument
298 if _pkt:
299 cmd = orb(_pkt[0])
Dbluetooth.py278 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
279 if _pkt and len(_pkt) == 6:
Ddns.py29 def __init__(self, _pkt=None, _orig_s=None, _orig_p=None, *args, **kwargs): argument
32 Packet.__init__(self, _pkt=_pkt, *args, **kwargs)
Dntp.py192 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
197 return _ntp_dispatcher(_pkt)
Dinet6.py561 def dispatch_hook(cls, _pkt=None, *_, **kargs): argument
562 if _pkt:
563 if orb(_pkt[0]) >> 4 == 6:
/external/scapy/scapy/contrib/
Digmpv3.py102 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
103 if _pkt and len(_pkt) >= 4:
104 if orb(_pkt[0]) in [0x12, 0x16, 0x17]:
106 elif orb(_pkt[0]) == 0x11 and len(_pkt) < 12:
Digmp.py81 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
82 if _pkt and len(_pkt) >= 4:
84 if orb(_pkt[0]) in [0x22, 0x30, 0x31, 0x32]:
86 if orb(_pkt[0]) == 0x11 and len(_pkt) >= 12:
Dpnio_rtc.py75 …def __init__(self, _pkt="", post_transform=None, _internal=0, _underlayer=None, config=None, **fie… argument
82 Packet.__init__(self, _pkt=_pkt, post_transform=post_transform,
173 def _pnio_rtc_guess_payload_class(_pkt, _underlayer=None, *args, **kargs): argument
181 cur_index = -len(_pkt)
184 return cls(_pkt, config=params, *args, **kargs)
187 return PNIORealTimeIOxS(_pkt, *args, **kargs)
190 return PNIORealTimeRawData(_pkt,
191 config={"length": len(_pkt)},
Dikev2.py509 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
510 if _pkt and len(_pkt) >= 16:
511 ts_type = struct.unpack("!B", _pkt[0:1])[0]
713 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
714 if _pkt and len(_pkt) >= 16:
715 ts_type = struct.unpack("!B", _pkt[4:5])[0]
Dgtp.py182 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
183 if _pkt == None:
230 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
231 if _pkt and len(_pkt) >= 1:
232 if (orb(_pkt[0]) >> 5) & 0x7 == 2:
235 if _pkt and len(_pkt) >= 8:
236 _gtp_type = orb(_pkt[1:2])
Dbgp.py403 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
408 return _bgp_dispatcher(_pkt)
462 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
467 return _bgp_dispatcher(_pkt)
588 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
593 return _bgp_capability_dispatcher(_pkt)
/external/scapy/scapy/layers/tls/
Drecord.py271 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
279 if _pkt and len(_pkt) >= 2:
280 byte0 = orb(_pkt[0])
281 byte1 = orb(_pkt[1])
291 if _pkt and len(_pkt) < 5:
Dhandshake.py334 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
335 if _pkt and len(_pkt) >= 6:
336 version = struct.unpack("!H", _pkt[4:6])[0]
608 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
609 if _pkt:
1180 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
Dsession.py815 def __init__(self, _pkt="", post_transform=None, _internal=0, argument
831 Packet.__init__(self, _pkt=_pkt, post_transform=post_transform,
Dkeyexchange.py841 def dispatch_hook(cls, _pkt=None, *args, **kargs): argument
/external/scapy/scapy/
Dpacket.py107 def __init__(self, _pkt=b"", post_transform=None, _internal=0, _underlayer=None, **fields): argument
122 self.original = _pkt
126 if _pkt:
127 self.dissect(_pkt)