The relationship of the boundary layer of the magnetosphere to IPRP events