summaryrefslogtreecommitdiffstats
path: root/tun.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "clatd: Use the TUN_NOCHECKSUM flag for the tun device"Subash Abhinov Kasiviswanathan2015-11-151-71/+0
| | | | | | | | | | | | | | This reverts commit 7efed4e30259da5348c4a7c2c77a0d0d4b13834d. This change may bypass checksum validation for all packets even if they have not been validated earlier. Hardware supports checksum offload for IPv4 / IPv6 UDP and TCP packets only. ICMPv4 / ICMPv6 / fragmented packet checksum offload is not supported and as a result the checksum will not be validated even once before these packet are delivered to the application. Change-Id: I28152b63bb432c3dc37fe7a713c3b225a662f678
* clatd: Use the TUN_NOCHECKSUM flag for the tun deviceSubash Abhinov Kasiviswanathan2015-10-121-0/+71
| | | | | | | | | 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
* Add a microbenchmark for tun write performance.Lorenzo Colitti2014-12-081-2/+22
| | | | Change-Id: Id73888d25afd9253634356436c57afec630a0846
* Move send_tun into tun.c as well.Lorenzo Colitti2014-12-081-0/+7
| | | | | | Also remove a redundant include in checksum.c. Change-Id: I0b8858343b1496f22904d3b316b6c435be0f648a
* Move tun functions to a new tun.c.Lorenzo Colitti2014-12-081-0/+62
Change-Id: I4910b6cfca0bbf6bde2d1348f43d3131a1212399