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

Class Padding

scapy/packet.py:2026–2038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2024
2025
2026class Padding(Raw):
2027 name = "Padding"
2028
2029 def self_build(self):
2030 # type: (Optional[Any]) -> bytes
2031 return b""
2032
2033 def build_padding(self):
2034 # type: () -> bytes
2035 return (
2036 bytes_encode(self.load) if self.raw_packet_cache is None
2037 else self.raw_packet_cache
2038 ) + self.payload.build_padding()
2039
2040
2041conf.raw_layer = Raw

Callers 4

sendMethod · 0.90
post_buildMethod · 0.90
m2iMethod · 0.90
m2iMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…