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

Method get_response

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

1158 return Block.post_build(self, p, pay)
1159
1160 def get_response(self):
1161 """Generate the response block of this request.
1162 Careful: it only sets the fields which can be set from the request
1163 """
1164 res = AlarmCRBlockRes()
1165 for field in ["AlarmCRType", "LocalAlarmReference"]:
1166 res.setfieldval(field, self.getfieldval(field))
1167
1168 res.block_type = self.block_type + 0x8000
1169 return res
1170
1171
1172class AlarmCRBlockRes(Block):

Callers

nothing calls this directly

Calls 3

AlarmCRBlockResClass · 0.85
setfieldvalMethod · 0.45
getfieldvalMethod · 0.45

Tested by

no test coverage detected