: tunfd(tun_open(devname)) {
}
-void TUNProtocol::send_packet(uint16_t proto, const string &data)
+void TUNProtocol::send_packet(uint16_t proto, const string &data, int incoming_seq)
{
char buf[4096];
ptr += 2;
//fprintf(stderr, "tun packet: flags=%x proto=%x len=%d\n",
// flags, proto, ret - 4);
- sender->send_packet(proto, string(ptr, buf + ret));
+ sender->send_packet(proto, string(ptr, buf + ret), -1);
}