6" PVC caps like this DWV part are designed to fit over the end of a piece of pipe. This cap has a flat style top and socket end.