Searched refs:TUN_HDRLEN (Results 1 – 1 of 1) sorted by relevance
46 static constexpr ssize_t TUN_HDRLEN = sizeof(struct tun_pi); variable193 uint8_t buf[MAXMTU + TUN_HDRLEN]; in handlePacket()221 if (tunPacket.size() < TUN_HDRLEN) { in validatePacket()232 return validateIpv4Packet(drop(tunPacket, TUN_HDRLEN)); in validatePacket()234 return validateIpv6Packet(drop(tunPacket, TUN_HDRLEN)); in validatePacket()317 return translateIpv4Packet(drop(tunPacket, TUN_HDRLEN)); in translatePacket()319 return translateIpv6Packet(drop(tunPacket, TUN_HDRLEN)); in translatePacket()