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

Method get_response

scapy/contrib/pnio_rpc.py:903–910  ·  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

901 block_type = 0x0102
902
903 def get_response(self):
904 """Generate the response block of this request.
905 Careful: it only sets the fields which can be set from the request
906 """
907 res = IOCRBlockRes()
908 for field in ["IOCRType", "IOCRReference", "FrameID"]:
909 res.setfieldval(field, self.getfieldval(field))
910 return res
911
912
913class IOCRBlockRes(Block):

Callers

nothing calls this directly

Calls 3

IOCRBlockResClass · 0.85
setfieldvalMethod · 0.45
getfieldvalMethod · 0.45

Tested by

no test coverage detected