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

Method i2repr

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

Source from the content-addressed store, hash-verified

3359 return r
3360
3361 def i2repr(self, pkt, x):
3362 # type: (Optional[Packet], Set[str]) -> str
3363 v = self.depends_on(pkt)
3364 these_names = self.names.get(v, {})
3365
3366 r = set()
3367 for flag_set in x:
3368 for i in these_names.values():
3369 if i.short == flag_set:
3370 r.add("{} ({})".format(i.long, i.short))
3371 break
3372 else:
3373 r.add(flag_set)
3374 return repr(r)
3375
3376
3377class FixedPointField(BitField):

Callers

nothing calls this directly

Calls 4

getMethod · 0.45
valuesMethod · 0.45
addMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected