diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-25 19:58:09 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-25 19:58:09 +0000 |
commit | fe2403cbe3b695c146f1e94722efa218865b82c2 (patch) | |
tree | e0107364cc6e72aecef720d96e740ba2bd5f1343 /clatd_test.cpp | |
parent | 7a7cfd6b4ebe1d0a12a52d31bdc66a5e576d6e3d (diff) | |
parent | fee9afb1a5d9f7f5df0c79e29368c61d7da16fb8 (diff) | |
download | android_external_android-clat-fe2403cbe3b695c146f1e94722efa218865b82c2.tar.gz android_external_android-clat-fe2403cbe3b695c146f1e94722efa218865b82c2.tar.bz2 android_external_android-clat-fe2403cbe3b695c146f1e94722efa218865b82c2.zip |
am fee9afb1: Android-Clatd: Remove unused variable
* commit 'fee9afb1a5d9f7f5df0c79e29368c61d7da16fb8':
Android-Clatd: Remove unused variable
Diffstat (limited to 'clatd_test.cpp')
-rw-r--r-- | clatd_test.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clatd_test.cpp b/clatd_test.cpp index 0b6063e..7e218f0 100644 --- a/clatd_test.cpp +++ b/clatd_test.cpp @@ -432,7 +432,6 @@ void do_translate_packet(const uint8_t *original, size_t original_len, uint8_t * if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, fds)) { abort(); } - struct tun_pi tun_header = { 0, 0 }; char foo[512]; snprintf(foo, sizeof(foo), "%s: Invalid original packet", msg); @@ -443,13 +442,11 @@ void do_translate_packet(const uint8_t *original, size_t original_len, uint8_t * int version = ip_version(original); switch (version) { case 4: - tun_header.proto = htons(ETH_P_IP); expected_proto = htons(ETH_P_IPV6); read_fd = fds[1]; write_fd = fds[0]; break; case 6: - tun_header.proto = htons(ETH_P_IPV6); expected_proto = htons(ETH_P_IP); read_fd = fds[0]; write_fd = fds[1]; |