[buffer] make miter_limit flexibel and correct IP to exactly that limit