Home | History | Annotate | Download | only in android-clat

Lines Matching full:packet

35 // A clat_packet is an array of iovec structures representing a packet that we are translating.
37 // specific parts of the packet. The packet_* functions operate on all the packet segments past a
46 // Calculates the checksum over all the packet components starting from pos.
47 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, int pos);
49 // Returns the total length of the packet components after pos.
50 uint16_t packet_length(clat_packet packet, int pos);
63 void translate_packet(const struct tun_data *tunnel, struct tun_pi *tun_header, const char *packet,
67 int ipv4_packet(clat_packet out, int pos, const char *packet, size_t len);
68 int ipv6_packet(clat_packet out, int pos, const char *packet, size_t len);