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

Method _ndrlayer

scapy/layers/dcerpc.py:2618–2624  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2616 # Add a bit of goo so that valueof() goes through the header
2617
2618 def _ndrlayer(self):
2619 cur = self
2620 while cur and not isinstance(cur, _NDRPacket) and cur.payload:
2621 cur = cur.payload
2622 if isinstance(cur, NDRPointer):
2623 cur = cur.value
2624 return cur
2625
2626 def getfield_and_val(self, attr):
2627 try:

Callers 2

getfield_and_valMethod · 0.95
valueofMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected