typedef std::map< BufferKey, offsetmap_type > buffer_type;
buffer_type buffer;
- /// Buffers de paquetes completos
- struct BufferPkt
- {
- uint32_t dst;
- std::string data;
- BufferPkt() {}
- BufferPkt(const IPAddr& dst, const std::string& data):
- dst(dst), data(data) {}
- };
- typedef std::map< IPAddr, BufferPkt > srcmap_type;
- typedef std::map< uint8_t, srcmap_type > buffer_complete_type;
- buffer_complete_type buffer_complete;
-
/// Constructor
IPIn(const IPAddr& ip, Dev& dev, Dev& forward_que, bool router = false,
bool forward = false, std::ostream& log = std::cout);
void drop(const std::string& msg, const IPHeader& iph);
/// Recibe un paquete IP
- std::string recv(uint8_t proto, IPAddr& src, IPAddr& dst,
- bool filter = false)
+ std::string recv(uint8_t& proto, IPAddr& src, IPAddr& dst)
throw (std::runtime_error);
// Nada de andar copiando placas...