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

Method get_response

scapy/contrib/pnio_rpc.py:811–818  ·  view source on GitHub ↗

Generate the response block of this request. Careful: it only sets the fields which can be set from the request

(self)

Source from the content-addressed store, hash-verified

809 block_type = 0x0101
810
811 def get_response(self):
812 """Generate the response block of this request.
813 Careful: it only sets the fields which can be set from the request
814 """
815 res = ARBlockRes()
816 for field in ["ARType", "ARUUID", "SessionKey"]:
817 res.setfieldval(field, self.getfieldval(field))
818 return res
819
820
821class ARBlockRes(Block):

Callers

nothing calls this directly

Calls 3

ARBlockResClass · 0.85
setfieldvalMethod · 0.45
getfieldvalMethod · 0.45

Tested by

no test coverage detected