Home
last modified time | relevance | path

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

/external/android-clat/
Dclatd.c349 struct tun_pi *tun_header = (struct tun_pi *) buf; in read_packet() local
350 if (readlen < (ssize_t) sizeof(*tun_header)) { in read_packet()
355 uint16_t proto = ntohs(tun_header->proto); in read_packet()
361 if(tun_header->flags != 0) { in read_packet()
362 logmsg(ANDROID_LOG_WARN, "%s: unexpected flags = %d", __func__, tun_header->flags); in read_packet()
365 packet = (uint8_t *) (tun_header + 1); in read_packet()
366 readlen -= sizeof(*tun_header); in read_packet()
Dtranslate.c111 void fill_tun_header(struct tun_pi *tun_header, uint16_t proto) { in fill_tun_header() argument
112 tun_header->flags = 0; in fill_tun_header()
113 tun_header->proto = htons(proto); in fill_tun_header()
Dtranslate.h45 void fill_tun_header(struct tun_pi *tun_header, uint16_t proto);