summaryrefslogtreecommitdiffstats
path: root/clatd.c
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-12-07 22:52:58 -0800
committerSteve Kondik <steve@cyngn.com>2015-12-07 22:52:58 -0800
commit54455ee38fc75efa23fc7b8e57ca1c954380ecbe (patch)
treec1e80bcbc7c1c0bb7792e1ac5fb4b0aa690bb633 /clatd.c
parent11ffa2451829c9bcb86f00c1cfff9f3be4b7064c (diff)
parent32961d08e3abe5b4e81178bb8c37dd4df231306d (diff)
downloadandroid_external_android-clat-54455ee38fc75efa23fc7b8e57ca1c954380ecbe.tar.gz
android_external_android-clat-54455ee38fc75efa23fc7b8e57ca1c954380ecbe.tar.bz2
android_external_android-clat-54455ee38fc75efa23fc7b8e57ca1c954380ecbe.zip
Merge branch 'LA.BF64.1.2.2_rb4.9' of git://codeaurora.org/platform/external/android-clat into cm-13.0stable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kstable/cm-13.0-ZNH0E
Change-Id: I8ff75c228032b83459bfc1090488fb670c01734e
Diffstat (limited to 'clatd.c')
-rw-r--r--clatd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/clatd.c b/clatd.c
index ca21984..a454770 100644
--- a/clatd.c
+++ b/clatd.c
@@ -364,7 +364,7 @@ void read_packet(int read_fd, int write_fd, int to_ipv6) {
packet = (uint8_t *) (tun_header + 1);
readlen -= sizeof(*tun_header);
- translate_packet(write_fd, to_ipv6, packet, readlen);
+ translate_packet(write_fd, to_ipv6, packet, readlen, TP_CSUM_NONE);
}
/* function: event_loop
@@ -496,9 +496,6 @@ int main(int argc, char **argv) {
// run under a regular user
drop_root();
- //check HW features and disable checksum validation if already handled by hardware
- rx_checksum_offloaded = check_csum_offload(uplink_interface);
-
// we can create tun devices as non-root because we're in the VPN group.
tunnel.fd4 = tun_open();
if(tunnel.fd4 < 0) {