Lines Matching defs:packet
107 * Binds the packet socket and attaches the receive filter to it.
118 logmsg(ANDROID_LOG_FATAL, "binding packet socket: %s", strerror(errno));
127 // doesn't match, jump ahead to statement that returns 0 (ignore packet). Repeat for the other
128 // three words of the IPv6 address, and if they all match, return PACKETLEN (accept packet).
146 logmsg(ANDROID_LOG_FATAL, "attach packet filter failed: %s", strerror(errno));
178 // Update our packet socket filter to reflect the new 464xlat IP address.
248 * opens a packet socket to receive IPv6 packets and a raw socket to send them
271 logmsg(ANDROID_LOG_FATAL, "packet socket failed: %s", strerror(errno));
322 * reads a packet from the tunnel fd and passes it down the stack
328 uint8_t buf[PACKETLEN], *packet;
353 logmsg(ANDROID_LOG_WARN, "%s: unknown packet type = 0x%x", __func__, proto);
362 packet = buf + header_size;
366 packet = buf;
369 translate_packet(fd, (fd == tunnel->write_fd6), packet, readlen);