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

Method get_response

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

411 return Block.post_build(self, p, pay)
412
413 def get_response(self):
414 """Generate the response block of this request.
415 Careful: it only sets the fields which can be set from the request
416 """
417 res = IODControlRes()
418 for field in ["ARUUID", "SessionKey", "AlarmSequenceNumber"]:
419 res.setfieldval(field, self.getfieldval(field))
420
421 res.block_type = self.block_type + 0x8000
422 return res
423
424
425class IODControlRes(Block):

Callers

nothing calls this directly

Calls 3

IODControlResClass · 0.85
setfieldvalMethod · 0.45
getfieldvalMethod · 0.45

Tested by

no test coverage detected