def post_build(self, p, pay):
        p += pay
        if self.len is None:
            l = len(p)-4
            #p = p[:2]+chr(l&0xff)+chr((l>>8)&0xff)+p[4:]
            p = p[:2]+bytes([(l&0xff),((l>>8)&0xff)])+p[4:]
        return p
dataset/ETHPy150Open phaethon/scapy/scapy/layers/bluetooth.py/L2CAP_Hdr.post_build/original