def METHOD_NAME(self, pkt, pay):
    # type: (bytes, bytes) -> bytes
    """
    This will set the LenField 'length' to the correct value.
    """
    if self.length is None:
        pkt = struct.pack("!I", len(pay) + 2) + pkt[4:]
    return pkt + pay