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

Method getfield

scapy/contrib/bgp.py:1852–1863  ·  view source on GitHub ↗
(self, pkt, s)

Source from the content-addressed store, hash-verified

1850 """
1851
1852 def getfield(self, pkt, s):
1853 lst = []
1854 length = len(s)
1855 remain = s[:length]
1856
1857 while remain:
1858 current = remain[:8]
1859 remain = remain[8:]
1860 packet = self.m2i(pkt, current)
1861 lst.append(packet)
1862
1863 return remain, lst
1864
1865
1866class BGPPAExtComms(Packet):

Callers

nothing calls this directly

Calls 2

m2iMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected