MCPcopy Index your code
hub / github.com/secdev/scapy / HICPModuleScan

Class HICPModuleScan

scapy/contrib/hicp.py:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226
227
228class HICPModuleScan(Packet):
229 name = "Module scan request"
230 fields_desc = [
231 StrField("hicp_command", CMD_MODULESCAN),
232 ByteField("padding", 0)
233 ]
234
235 def do_dissect(self, s):
236 if len(s) > len(CMD_MODULESCAN):
237 self.hicp_command = s[:len(CMD_MODULESCAN)]
238 self.padding = s[len(CMD_MODULESCAN):]
239 else:
240 self.padding = RawVal(s)
241
242 def post_build(self, p, pay):
243 return p.upper() + pay
244
245
246class HICP(Packet):

Callers

nothing calls this directly

Calls 2

StrFieldClass · 0.90
ByteFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…