| 593 | |
| 594 | |
| 595 | class _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 | |
| 607 | class FileBothDirectoryInformation(Packet): |
no outgoing calls
no test coverage detected
searching dependent graphs…