cleanup - remove send_tun() am: 73a5f20360
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/android-clat/+/11736438
Change-Id: I5e65ec38f12a9e54b8bdb2e8e0240c3af37dccfe
diff --git a/translate.c b/translate.c
index 1632753..f759726 100644
--- a/translate.c
+++ b/translate.c
@@ -524,7 +524,7 @@
if (iov_len > 0) {
fill_tun_header(&tun_targ, ETH_P_IP);
out[CLAT_POS_TUNHDR].iov_len = sizeof(tun_targ);
- send_tun(fd, out, iov_len);
+ writev(fd, out, iov_len);
}
}
}
diff --git a/tun.h b/tun.h
index eaeebc6..1dc9136 100644
--- a/tun.h
+++ b/tun.h
@@ -32,15 +32,4 @@
struct packet_ring ring;
};
-/* function: send_tun
- * sends a clat_packet to a tun interface
- * fd - the tun filedescriptor
- * out - the packet to send
- * iov_len - the number of entries in the clat_packet
- * returns: number of bytes read on success, -1 on failure
- */
-static inline int send_tun(int fd, clat_packet out, int iov_len) {
- return writev(fd, out, iov_len);
-}
-
#endif