#include "ipaddr.h"
#include "ipheader.h"
-#include "dev.h"
+#include "routetable.h"
#include <iostream>
#include <string>
#include <stdexcept>
/// Dirección MAC
IPAddr ip;
- /// Dispositivo de red
- Dev& dev;
+ /// Dispositivo de logging
+ RouteTable& rtable;
/// Dispositivo de logging
std::ostream& log;
/// Constructor
- IPOut(const IPAddr& ip, Dev& dev, std::ostream& log = std::cout);
+ IPOut(const IPAddr& ip, RouteTable& rtable, std::ostream& log = std::cout);
/// Descarta un paquete
void drop(const std::string& msg, const std::string& buf);