Building upon your Embedded Xinu kernel from the previous assignment, implement a basic routing table that allows your network stack to forward IP datagrams to a gateway when they are not destined for the local LAN.
Your new component should feature the following:
When you have this working, configure two routes for testing: 192.168.6.0/24 should be delivered directly on the local network; all other destinations should be forwarded to the default route, Xinugate (192.168.6.50). Xinugate (aka Zardoz) will forward your packets using Network Address Translation (NAT -- see Chapter 23) to the production network.
The end result of all of this? Your Xinu backend should be able to ping both machines on the local LAN (192.168.6.* addresses) and the Internet. Good testcases for external ping include the Systems Lab Linux boxes or Balan.cs.purdue.edu (128.211.1.10).