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

Method any2i

scapy/layers/dns.py:341–344  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

339 (may be StrLenField if a length_from is passed),
340 """
341 def any2i(self, pkt, x):
342 if x and isinstance(x, list):
343 return [self.h2i(pkt, y) for y in x]
344 return super(DNSStrField, self).any2i(pkt, x)
345
346 def h2i(self, pkt, x):
347 # Setting a DNSStrField manually (h2i) means any current compression will break

Callers 4

i2mMethod · 0.45
any2iMethod · 0.45
dns_resolveFunction · 0.45
nbns_resolveFunction · 0.45

Calls 1

h2iMethod · 0.95

Tested by

no test coverage detected