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

Method i2len

scapy/contrib/bgp.py:112–114  ·  view source on GitHub ↗
(self, pkt, i)

Source from the content-addressed store, hash-verified

110 return self.i2h(pkt, i)
111
112 def i2len(self, pkt, i):
113 mask, _ = i
114 return self.mask2iplen(mask) + 1
115
116 def i2m(self, pkt, i):
117 """"Internal" (IP as bytes, mask as int) to "machine"

Callers 3

_ldp_id_adjustlenFunction · 0.45
get_lenMethod · 0.45
m2iMethod · 0.45

Calls 1

mask2iplenMethod · 0.95

Tested by

no test coverage detected