Home
last modified time | relevance | path

Searched refs:TUN_HDRLEN (Results 1 – 1 of 1) sorted by relevance

/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp46 static constexpr ssize_t TUN_HDRLEN = sizeof(struct tun_pi); variable
193 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()