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

Method any2i

scapy/layers/dcerpc.py:2506–2513  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

2504 NDRConstructedType.__init__(self, [x[0] for x in flds] + [dflt])
2505
2506 def any2i(self, pkt, x):
2507 # User-friendly helper
2508 if x:
2509 if not isinstance(x, NDRUnion):
2510 raise ValueError("Invalid value for %s; should be NDRUnion" % self.name)
2511 else:
2512 x.value = _NDRUnionField.any2i(self, pkt, x)
2513 return x
2514
2515
2516# Misc

Callers

nothing calls this directly

Calls 1

any2iMethod · 0.45

Tested by

no test coverage detected