Searched refs:tun_header (Results 1 – 4 of 4) sorted by relevance
388 struct tun_pi *tun_header = (struct tun_pi *) buf; in read_packet() local389 uint16_t proto = ntohs(tun_header->proto); in read_packet()395 if(tun_header->flags != 0) { in read_packet()396 logmsg(ANDROID_LOG_WARN, "%s: unexpected flags = %d", __func__, tun_header->flags); in read_packet()
111 void fill_tun_header(struct tun_pi *tun_header, uint16_t proto) { in fill_tun_header() argument112 tun_header->flags = 0; in fill_tun_header()113 tun_header->proto = htons(proto); in fill_tun_header()
56 void fill_tun_header(struct tun_pi *tun_header, uint16_t proto);
435 struct tun_pi tun_header = { 0, 0 }; in do_translate_packet() local446 tun_header.proto = htons(ETH_P_IP); in do_translate_packet()452 tun_header.proto = htons(ETH_P_IPV6); in do_translate_packet()