diff options
| author | Maciej Żenczykowski <maze@google.com> | 2020-06-03 08:08:20 +0000 |
|---|---|---|
| committer | Maciej Zenczykowski <maze@google.com> | 2020-06-04 09:52:32 +0000 |
| commit | 73a5f2036069d7295abc55d60829ffd614362fc5 (patch) | |
| tree | fcd0daa72e801957a82d89360404c0c02b8d71e1 | |
| parent | 8452f3f65229a25fb99da23019e732f4b169b566 (diff) | |
| download | platform_external_android-clat-73a5f2036069d7295abc55d60829ffd614362fc5.tar.gz platform_external_android-clat-73a5f2036069d7295abc55d60829ffd614362fc5.tar.bz2 platform_external_android-clat-73a5f2036069d7295abc55d60829ffd614362fc5.zip | |
cleanup - remove send_tun()
Test:
git grep send_tun
comes up empty
Bug: 144730808
Test: atest clatd_test netd_integration_test
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Original-Change: https://android-review.googlesource.com/1322978
Merged-In: If81ca18bf5a33549b532de0d6406e32f4560c93a
Change-Id: If81ca18bf5a33549b532de0d6406e32f4560c93a
| -rw-r--r-- | translate.c | 2 | ||||
| -rw-r--r-- | tun.h | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/translate.c b/translate.c index 1632753..f759726 100644 --- a/translate.c +++ b/translate.c @@ -524,7 +524,7 @@ void translate_packet(int fd, int to_ipv6, const uint8_t *packet, size_t packets 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); } } } @@ -32,15 +32,4 @@ struct tun_data { 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 |
