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

Class NRBFLengthPrefixedString

scapy/layers/ms_nrtp.py:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345
346class NRBFLengthPrefixedString(Packet):
347 fields_desc = [
348 MSBExtendedFieldLen("Length", None, length_of="String"),
349 StrLenField("String", b"", length_from=lambda pkt: pkt.Length),
350 ]
351
352 def default_payload_class(self, payload):
353 return conf.padding_layer
354
355
356# [MS-NRBF] sect 2.1.1.8

Callers 6

NRBFClassTypeInfoClass · 0.85
NRBFValueWithCodeClass · 0.85
NRBFClassInfoClass · 0.85
NRBFAdditionalInfoClass · 0.85
NRBFBinaryLibraryClass · 0.85

Calls 2

StrLenFieldClass · 0.90
MSBExtendedFieldLenClass · 0.85

Tested by

no test coverage detected