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

Method default_payload_class

scapy/packet.py:1130–1139  ·  view source on GitHub ↗

DEV: Returns the default payload class if nothing has been found by the guess_payload_class() method. :param str payload: the layer's payload :return: the default payload class define inside the configuration file

(self, payload)

Source from the content-addressed store, hash-verified

1128 return self.default_payload_class(payload)
1129
1130 def default_payload_class(self, payload):
1131 # type: (bytes) -> Type[Packet]
1132 """
1133 DEV: Returns the default payload class if nothing has been found by the
1134 guess_payload_class() method.
1135
1136 :param str payload: the layer's payload
1137 :return: the default payload class define inside the configuration file
1138 """
1139 return conf.raw_layer
1140
1141 def hide_defaults(self):
1142 # type: () -> None

Callers 1

guess_payload_classMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected