X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/9ee7a97ec97d3dc41e1367f1f457d5ed5d5270ea..78d6e1ce97611abe9f0d083033197773f93c33f7:/practicas/pipi/src/ipin.h diff --git a/practicas/pipi/src/ipin.h b/practicas/pipi/src/ipin.h index ecdc93e..8a452b2 100644 --- a/practicas/pipi/src/ipin.h +++ b/practicas/pipi/src/ipin.h @@ -47,19 +47,6 @@ struct IPIn 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); @@ -69,8 +56,7 @@ struct IPIn 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...