distance vector algorithm implementation in C. you can simulate router using local device's ports. Makefile is included for UNIX/LINUX users.