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

Class CCCountedOctetString

scapy/modules/ticketer.py:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120class CCCountedOctetString(Packet):
121 fields_desc = [
122 FieldLenField("length", None, length_of="data", fmt="I"),
123 StrLenField("data", b"", length_from=lambda pkt: pkt.length),
124 ]
125
126 def guess_payload_class(self, payload):
127 return conf.padding_layer
128
129
130class CCPrincipal(Packet):

Callers 5

CCPrincipalClass · 0.85
CCAddressClass · 0.85
CCAuthDataClass · 0.85
CCCredentialClass · 0.85
set_from_krbMethod · 0.85

Calls 2

FieldLenFieldClass · 0.90
StrLenFieldClass · 0.90

Tested by

no test coverage detected