You are probably talking about the 4inch soil pipe that extends through the roof to the open air. This pipe vents smells from the toilet/ waste drains to open air. You can fit a 'durgo', or 'air admittance valve' by cutting down this 4inch pipe, but the valve must remain higher than the highest wast...