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

Class NDRInt3264Field

scapy/layers/dcerpc.py:1672–1683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1670
1671
1672class NDRInt3264Field(_NDRLenField):
1673 FMTS = ["I", "Q"]
1674
1675 def getfield(self, pkt, s):
1676 fmt = _e(pkt.ndrendian) + self.FMTS[pkt.ndr64]
1677 return NDRAlign(Field("", 0, fmt=fmt), align=(4, 8)).getfield(pkt, s)
1678
1679 def addfield(self, pkt, s, val):
1680 fmt = _e(pkt.ndrendian) + self.FMTS[pkt.ndr64]
1681 return NDRAlign(Field("", 0, fmt=fmt), align=(4, 8)).addfield(
1682 pkt, s, self.i2m(pkt, val)
1683 )
1684
1685
1686class NDRSignedInt3264Field(NDRInt3264Field):

Callers 3

getfieldMethod · 0.85
addfieldMethod · 0.85
NDRNoneClass · 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…