Washing Machine Drainage Code Help
I have a washing machine that drains directly into the pipe that connects to septic tank. There is no trap. The washing machine drain hose is threaded onto the drainage pipe. I spent quite awhile searching these forums and have concluded this does not meet code. The proper S and P trap configuration wont work because I cannot connect it upwards to the vent pipe, its nowhere near the laundry room. The sink and the connections you can see going to the left will all be removed, please disregard them. I want to put a trap in because I can smell the odours sometimes. If I am going to take it apart and fix it, I want to meet code. Here's some pictures...
Image 1 shows connection to drain from washer
Image 2 is just an extension of image one, showing pipe going through floor
image 3 is the hookup to the main pipe going to my septic tank
Whats my best option?