MCPcopy Create free account
hub / github.com/secdev/scapy / padlen

Method padlen

scapy/layers/dcerpc.py:1469–1470  ·  view source on GitHub ↗
(self, flen, pkt)

Source from the content-addressed store, hash-verified

1467
1468class _NDRAlign:
1469 def padlen(self, flen, pkt):
1470 return -flen % self._align[pkt.ndr64]
1471
1472 def original_length(self, pkt):
1473 # Find the length of the NDR frag to be able to pad properly

Callers 2

i2lenMethod · 0.45
post_buildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected