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

Method post_build

scapy/packet.py:791–800  ·  view source on GitHub ↗

DEV: called right after the current layer is build. :param str pkt: the current packet (build by self_build function) :param str pay: the packet payload (build by do_build_payload function) :return: a string of the packet with the payload

(self, pkt, pay)

Source from the content-addressed store, hash-verified

789 return p
790
791 def post_build(self, pkt, pay):
792 # type: (bytes, bytes) -> bytes
793 """
794 DEV: called right after the current layer is build.
795
796 :param str pkt: the current packet (build by self_build function)
797 :param str pay: the packet payload (build by do_build_payload function)
798 :return: a string of the packet with the payload
799 """
800 return pkt + pay
801
802 def build_done(self, p):
803 # type: (bytes) -> bytes

Callers 1

do_buildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected