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)
| 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 |