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

Class _NextPacketListField

scapy/layers/smb2.py:595–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593
594
595class _NextPacketListField(PacketListField):
596 def addfield(self, pkt, s, val):
597 # we use this field to set NextEntryOffset
598 res = b""
599 for i, v in enumerate(val):
600 x = self.i2m(pkt, v)
601 if v.Next is None and i != len(val) - 1:
602 x = struct.pack("<I", len(x)) + x[4:]
603 res += x
604 return s + res
605
606
607class FileBothDirectoryInformation(Packet):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…