ptr += 2;
//fprintf(stderr, "tun packet: flags=%x proto=%x len=%d\n",
// flags, proto, ret - 4);
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), -1);
+ ++received_packets;
+ sender->send_packet(proto, string(ptr, buf + ret), seq++);