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

Method getfield

scapy/layers/bluetooth4LE.py:147–148  ·  view source on GitHub ↗
(self, pkt, s)

Source from the content-addressed store, hash-verified

145 return s + struct.pack(self.fmt, self.i2m(pkt, val))[:5]
146
147 def getfield(self, pkt, s):
148 return s[5:], self.m2i(pkt, struct.unpack(self.fmt, s[:5] + b"\x00\x00\x00")[0]) # noqa: E501
149
150
151class BTLEFeatureField(FlagsField):

Callers

nothing calls this directly

Calls 1

m2iMethod · 0.45

Tested by

no test coverage detected