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

Method extract_padding

scapy/packet.py:1015–1023  ·  view source on GitHub ↗

DEV: to be overloaded to extract current layer's padding. :param str s: the current layer :return: a couple of strings (actual layer, padding)

(self, s)

Source from the content-addressed store, hash-verified

1013 return canvas
1014
1015 def extract_padding(self, s):
1016 # type: (bytes) -> Tuple[bytes, Optional[bytes]]
1017 """
1018 DEV: to be overloaded to extract current layer's padding.
1019
1020 :param str s: the current layer
1021 :return: a couple of strings (actual layer, padding)
1022 """
1023 return s, None
1024
1025 def post_dissect(self, s):
1026 # type: (bytes) -> bytes

Callers 1

dissectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected