/external/android-clat/ |
translate.h | 36 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, clat_packet_index pos); 39 uint16_t packet_length(clat_packet packet, clat_packet_index pos); 55 int ipv4_packet(clat_packet out, clat_packet_index pos, const uint8_t *packet, size_t len); 56 int ipv6_packet(clat_packet out, clat_packet_index pos, const uint8_t *packet, size_t len); 69 int icmp_to_icmp6(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, 71 int icmp6_to_icmp(clat_packet out, clat_packet_index pos, const struct icmp6_hdr *icmp6, 75 int generic_packet(clat_packet out, clat_packet_index pos, const uint8_t *payload, size_t len); 78 int tcp_packet(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp, 80 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp, 83 int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *tcp [all...] |
clatd.h | 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]; typedef in typeref:struct:iovec
|
tun.h | 34 int send_tun(int fd, clat_packet out, int iov_len);
|
translate.c | 36 uint16_t packet_checksum(uint32_t checksum, clat_packet packet, clat_packet_index pos) { 52 uint16_t packet_length(clat_packet packet, clat_packet_index pos) { 225 * returns: the highest position in the output clat_packet that's filled in 227 int icmp_to_icmp6(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, 279 * returns: the highest position in the output clat_packet that's filled in 281 int icmp6_to_icmp(clat_packet out, clat_packet_index pos, const struct icmp6_hdr *icmp6, 325 * returns: the highest position in the output clat_packet that's filled in 327 int generic_packet(clat_packet out, clat_packet_index pos, const uint8_t *payload, size_t len) { 343 int udp_packet(clat_packet out, clat_packet_index pos, const struct udphdr *udp, 365 * returns: the highest position in the output clat_packet that's filled i [all...] |
ipv4.c | 32 * returns: the highest position in the output clat_packet that's filled in 34 int icmp_packet(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, 55 * returns: the highest position in the output clat_packet that's filled in 57 int ipv4_packet(clat_packet out, clat_packet_index pos, const uint8_t *packet, size_t len) {
|
tun.c | 81 * sends a clat_packet to a tun interface 84 * iov_len - the number of entries in the clat_packet 87 int send_tun(int fd, clat_packet out, int iov_len) {
|
ipv6.c | 35 * returns: the highest position in the output clat_packet that's filled in 37 int icmp6_packet(clat_packet out, clat_packet_index pos, const struct icmp6_hdr *icmp6, 76 * returns: the highest position in the output clat_packet that's filled in 78 int ipv6_packet(clat_packet out, clat_packet_index pos, const uint8_t *packet, size_t len) {
|
clatd_microbenchmark.c | 105 clat_packet out = {
|
clatd_test.cpp | 425 extern "C" void send_rawv6(int fd, clat_packet out, int iov_len) { [all...] |