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

Lines Matching refs:clat_packet

35 // A clat_packet is an array of iovec structures representing a packet that we are translating.
36 // The CLAT_POS_XXX constants represent the array indices within the clat_packet that contain
44 typedef struct iovec clat_packet[CLAT_POS_MAX];
47 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, int pos);
50 uint16_t packet_length(clat_packet packet, int pos);
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);
76 int icmp_to_icmp6(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum,
78 int icmp6_to_icmp(clat_packet out, int pos, const struct icmp6_hdr *icmp6,
82 int generic_packet(clat_packet out, int pos, const char *payload, size_t len);
85 int tcp_packet(clat_packet out, int pos, const struct tcphdr *tcp,
87 int udp_packet(clat_packet out, int pos, const struct udphdr *udp,
90 int tcp_translate(clat_packet out, int pos, const struct tcphdr *tcp, size_t header_size,
92 int udp_translate(clat_packet out, int pos, const struct udphdr *udp,