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

Method build

scapy/packet.py:779–789  ·  view source on GitHub ↗

Create the current layer :return: string of the packet with the payload

(self)

Source from the content-addressed store, hash-verified

777 return self.payload.build_padding()
778
779 def build(self):
780 # type: () -> bytes
781 """
782 Create the current layer
783
784 :return: string of the packet with the payload
785 """
786 p = self.do_build()
787 p += self.build_padding()
788 p = self.build_done(p)
789 return p
790
791 def post_build(self, pkt, pay):
792 # type: (bytes, bytes) -> bytes

Callers 3

__reduce__Method · 0.95
__bytes__Method · 0.95
self_buildMethod · 0.45

Calls 3

do_buildMethod · 0.95
build_paddingMethod · 0.95
build_doneMethod · 0.95

Tested by

no test coverage detected