Forwarding Table for a router implemented in C++