Before revision: The function of the RAM is to store the packets which are inputted to it via its input terminal.
After revision: The function of the RAM is to store the packets that arrive via its input terminal.