(self, pkt, pay)
| 88 | ] |
| 89 | |
| 90 | def post_build(self, pkt, pay): |
| 91 | if (self.real_dst is None or self.real_src is None) and \ |
| 92 | isinstance(self.underlayer, Ether): |
| 93 | eth = self.underlayer |
| 94 | if self.real_dst is None: |
| 95 | pkt = (pkt[:4] + eth.fields_desc[0].i2m(eth, eth.dst) + |
| 96 | pkt[10:]) |
| 97 | if self.real_src is None: |
| 98 | pkt = (pkt[:10] + eth.fields_desc[1].i2m(eth, eth.src) + |
| 99 | pkt[16:]) |
| 100 | return pkt + pay |
| 101 | |
| 102 | def mysummary(self): |
| 103 | if isinstance(self.underlayer, Ether): |