Reciprocal interactions of hairpin-shaped vortices and a boundary layer