Create the default version of the layer :return: a string of the packet with the payload
(self)
| 755 | return self.payload.do_build() |
| 756 | |
| 757 | def do_build(self): |
| 758 | # type: () -> bytes |
| 759 | """ |
| 760 | Create the default version of the layer |
| 761 | |
| 762 | :return: a string of the packet with the payload |
| 763 | """ |
| 764 | if not self.explicit: |
| 765 | self = next(iter(self)) |
| 766 | pkt = self.self_build() |
| 767 | for t in self.post_transforms: |
| 768 | pkt = t(pkt) |
| 769 | pay = self.do_build_payload() |
| 770 | if self.raw_packet_cache is None: |
| 771 | return self.post_build(pkt, pay) |
| 772 | else: |
| 773 | return pkt + pay |
| 774 | |
| 775 | def build_padding(self): |
| 776 | # type: () -> bytes |
no test coverage detected