#ifndef _ROUTING_TABLE_LOADER_
#define _ROUTING_TABLE_LOADER_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define NUM_ROUTERS 6

struct TableEntry
{
	char destination;
	char nextRouter;
	int mtu;
};

struct RoutingTable
{
	char letter;
	char domain[25];
	unsigned long ip;
	struct TableEntry route[NUM_ROUTERS-1];
};



/****************************************************************
*	This function loads the routing.txt file and returns the 
*	routing information as a pointer to a RoutingTable structure.
****************************************************************/
struct RoutingTable *LoadRoutingTable();

#endif
