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

Class FileModeInformation

scapy/layers/smb2.py:678–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676
677
678class FileModeInformation(Packet):
679 fields_desc = [
680 FlagsField(
681 "Mode",
682 0,
683 -32,
684 {
685 0x00000002: "FILE_WRITE_TROUGH",
686 0x00000004: "FILE_SEQUENTIAL_ONLY",
687 0x00000008: "FILE_NO_INTERMEDIATE_BUFFERING",
688 0x00000010: "FILE_SYNCHRONOUS_IO_ALERT",
689 0x00000020: "FILE_SYNCHRONOUS_IO_NONALERT",
690 0x00001000: "FILE_DELETE_ON_CLOSE",
691 },
692 )
693 ]
694
695 def default_payload_class(self, s):
696 return conf.padding_layer
697
698
699# [MS-FSCC] 2.4.35 FilePositionInformation

Callers 1

FileAllInformationClass · 0.85

Calls 1

FlagsFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…