MCPcopy Index your code
hub / github.com/secdev/scapy / firstlayer

Method firstlayer

scapy/packet.py:1377–1382  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1375 _subclass=_subclass, **flt)
1376
1377 def firstlayer(self):
1378 # type: () -> Packet
1379 q = self
1380 while q.underlayer is not None:
1381 q = q.underlayer
1382 return q
1383
1384 def __getitem__(self, cls):
1385 # type: (Union[Type[Packet], str]) -> Any

Callers 15

_opc_stubdata_lengthFunction · 0.80
OpcDaRequestClass · 0.80
igmpizeMethod · 0.80
_tls_auth_decryptMethod · 0.80
verify_macMethod · 0.80
post_buildMethod · 0.80
post_dissectionMethod · 0.80
post_buildMethod · 0.80
post_dissectionMethod · 0.80
post_dissectionMethod · 0.80
post_dissectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected