The rule
Pipe openings are a path into the building, and the code closes them. Strainer plates on drain inlets have to be designed and installed so no opening exceeds 1/2 inch in the least dimension.
Meter boxes are built so rodents and vermin can't follow the service pipe from the box into the building. Where openings are made in walls, floors or ceilings for pipe, they're closed and protected with approved metal collars fastened securely to the structure.
Tub waste openings in framed construction to a crawl space at or below the first floor get an approved metal collar or metal screen, fastened to the structure, with no opening over 1/2 inch in the least dimension.
On the job
- The oversized hole in the subfloor under a tub is the usual miss. Close it with a metal collar or screen before the tub goes in or while you still have access.
- Cut the hole as close to the pipe as the pipe lets you, then collar it. A collar around a hole that's twice the pipe size doesn't do the job.
- Check strainers and grates at floor drains. If the openings are bigger than 1/2 inch, they're not compliant.
The inspector and your city's adopted edition have the final word.