MCPcopy Create free account
hub / github.com/secdev/scapy / post_build

Method post_build

scapy/layers/lltd.py:90–100  ·  view source on GitHub ↗
(self, pkt, pay)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

i2mMethod · 0.45

Tested by

no test coverage detected