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

Method padding

scapy/plist.py:428–440  ·  view source on GitHub ↗

Same as hexraw(), for Padding layer

(self, lfilter=None)

Source from the content-addressed store, hash-verified

426 hexdump(p)
427
428 def padding(self, lfilter=None):
429 # type: (Optional[Callable[..., bool]]) -> None
430 """Same as hexraw(), for Padding layer"""
431 for i, res in enumerate(self.res):
432 p = self._elt2pkt(res)
433 if p.haslayer(conf.padding_layer):
434 if lfilter is None or lfilter(p):
435 print("%s %s %s" % (conf.color_theme.id(i, fmt="%04i"),
436 p.sprintf("%.time%"),
437 self._elt2sum(res)))
438 hexdump(
439 p.getlayer(conf.padding_layer).load # type: ignore
440 )
441
442 def nzpadding(self, lfilter=None):
443 # type: (Optional[Callable[..., bool]]) -> None

Callers

nothing calls this directly

Calls 6

_elt2pktMethod · 0.95
_elt2sumMethod · 0.95
hexdumpFunction · 0.90
haslayerMethod · 0.45
sprintfMethod · 0.45
getlayerMethod · 0.45

Tested by

no test coverage detected