summaryrefslogtreecommitdiffstats
path: root/translate.c
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2014-12-08 12:53:05 +0900
committerLorenzo Colitti <lorenzo@google.com>2014-12-08 13:50:12 +0900
commit6b2007aacd13344c9bc73d5d858bd903b432c228 (patch)
tree3b5c3fa430d1993b149481be415e75297abb017b /translate.c
parent290b84274989c82393a72f97f7c009094e74c651 (diff)
downloadandroid_external_android-clat-6b2007aacd13344c9bc73d5d858bd903b432c228.tar.gz
android_external_android-clat-6b2007aacd13344c9bc73d5d858bd903b432c228.tar.bz2
android_external_android-clat-6b2007aacd13344c9bc73d5d858bd903b432c228.zip
Move send_tun into tun.c as well.
Also remove a redundant include in checksum.c. Change-Id: I0b8858343b1496f22904d3b316b6c435be0f648a
Diffstat (limited to 'translate.c')
-rw-r--r--translate.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/translate.c b/translate.c
index 487468b..ddc9bac 100644
--- a/translate.c
+++ b/translate.c
@@ -16,7 +16,6 @@
* translate.c - CLAT functions / partial implementation of rfc6145
*/
#include <string.h>
-#include <sys/uio.h>
#include "icmp.h"
#include "translate.h"
@@ -25,6 +24,7 @@
#include "config.h"
#include "logging.h"
#include "debug.h"
+#include "tun.h"
/* function: packet_checksum
* calculates the checksum over all the packet components starting from pos
@@ -465,10 +465,6 @@ int tcp_translate(clat_packet out, clat_packet_index pos, const struct tcphdr *t
return CLAT_POS_PAYLOAD + 1;
}
-void send_tun(int fd, clat_packet out, int iov_len) {
- writev(fd, out, iov_len);
-}
-
// Weak symbol so we can override it in the unit test.
void send_rawv6(int fd, clat_packet out, int iov_len) __attribute__((weak));