summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>2015-10-10 19:41:32 -0600
committerSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>2015-10-12 10:56:09 -0600
commit7efed4e30259da5348c4a7c2c77a0d0d4b13834d (patch)
tree333d4e6a4a5f0d87f0a2110e24664cffcb9d5a03 /config.h
parent35b34f09ab343ae8a75fcb9ff3cea180cf58992a (diff)
downloadandroid_external_android-clat-7efed4e30259da5348c4a7c2c77a0d0d4b13834d.tar.gz
android_external_android-clat-7efed4e30259da5348c4a7c2c77a0d0d4b13834d.tar.bz2
android_external_android-clat-7efed4e30259da5348c4a7c2c77a0d0d4b13834d.zip
clatd: Use the TUN_NOCHECKSUM flag for the tun device
This is needed to handle cases when the packet socket receives a GRO coalesced packet which will not have a valid TCP checksum. TUN_NOCHECKSUM is used only when the checksum has already been verified prior to this and GRO is being used. Change-Id: I1409967523152bb7620b4881526e78e8c222cc72
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.h b/config.h
index e31a81d..82a91be 100644
--- a/config.h
+++ b/config.h
@@ -39,6 +39,8 @@ struct clat_config {
extern struct clat_config Global_Clatd_Config;
+extern int rx_checksum_offloaded;
+
int read_config(const char *file, const char *uplink_interface, const char *plat_prefix,
unsigned net_id);
void config_generate_local_ipv6_subnet(struct in6_addr *interface_ip);