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

Method post_build

scapy/layers/smb2.py:3385–3400  ·  view source on GitHub ↗
(self, pkt, pay)

Source from the content-addressed store, hash-verified

3383 ]
3384
3385 def post_build(self, pkt, pay):
3386 # type: (bytes, bytes) -> bytes
3387 if len(pkt) == 0x30:
3388 # 'The first byte of the Buffer field MUST be set to 0.'
3389 pkt += b"\x00"
3390 return (
3391 _SMB2_post_build(
3392 self,
3393 pkt,
3394 self.OFFSET,
3395 {
3396 "ReadChannelInfo": 44,
3397 },
3398 )
3399 + pay
3400 )
3401
3402
3403bind_top_down(

Callers

nothing calls this directly

Calls 1

_SMB2_post_buildFunction · 0.85

Tested by

no test coverage detected