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

Class MOUNT_Reply

scapy/contrib/mount.py:72–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72class MOUNT_Reply(Packet):
73 name = 'MOUNT Reply'
74 fields_desc = [
75 IntEnumField('status', 0, mountstat3),
76 ConditionalField(
77 PacketField('filehandle', File_Object(), File_Object),
78 lambda pkt: pkt.status == 0
79 ),
80 ConditionalField(IntField('flavors', 0), lambda pkt: pkt.status == 0),
81 ConditionalField(
82 FieldListField(
83 'flavor', None, IntField('', None),
84 count_from=lambda pkt: pkt.flavors
85 ),
86 lambda pkt: pkt.status == 0
87 )
88 ]
89
90 def get_filehandle(self):
91 if self.status == 0:
92 return self.filehandle.fh
93 return None
94
95
96bind_layers(RPC, MOUNT_Call, mtype=0)

Callers

nothing calls this directly

Calls 6

IntEnumFieldClass · 0.90
ConditionalFieldClass · 0.90
PacketFieldClass · 0.90
File_ObjectClass · 0.90
IntFieldClass · 0.90
FieldListFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…