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

Class KTCountedOctetString

scapy/modules/ticketer.py:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287
288
289class KTCountedOctetString(Packet):
290 fields_desc = [
291 FieldLenField("length", None, length_of="data", fmt="H"),
292 StrLenField("data", b"", length_from=lambda pkt: pkt.length),
293 ]
294
295 def guess_payload_class(self, payload):
296 return conf.padding_layer
297
298
299class KTKeyBlock(Packet):

Callers 2

KeytabEntryClass · 0.85
add_credMethod · 0.85

Calls 2

FieldLenFieldClass · 0.90
StrLenFieldClass · 0.90

Tested by

no test coverage detected