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

Method any2i

scapy/fields.py:2116–2121  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

2114 return int(sum(self.field.i2len(pkt, v) for v in val))
2115
2116 def any2i(self, pkt, x):
2117 # type: (Optional[Packet], List[Any]) -> List[Any]
2118 if not isinstance(x, list):
2119 return [self.field.any2i(pkt, x)]
2120 else:
2121 return [self.field.any2i(pkt, e) for e in x]
2122
2123 def i2repr(self,
2124 pkt, # type: Optional[Packet]

Callers

nothing calls this directly

Calls 1

any2iMethod · 0.45

Tested by

no test coverage detected