(self, pkt, s)
| 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 | |
| 1866 | class BGPPAExtComms(Packet): |