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

Class PadFieldWithLen

scapy/contrib/pnio_rpc.py:602–608  ·  view source on GitHub ↗

PadField which handles the i2len function to include padding

Source from the content-addressed store, hash-verified

600
601# IODWriteMultipleRe{q,s}
602class PadFieldWithLen(PadField):
603 """PadField which handles the i2len function to include padding"""
604
605 def i2len(self, pkt, val):
606 """get the length of the field, including the padding length"""
607 fld_len = self.fld.i2len(pkt, val)
608 return fld_len + self.padlen(fld_len, pkt)
609
610
611class IODWriteMultipleReq(Block):

Callers 1

IODWriteMultipleReqClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…