commit | 9353be2a5f1b4fd00b04e4c826f7f3c3ec6c5d46 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Wed Dec 03 15:18:29 2014 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue Feb 03 17:48:28 2015 +0900 |
tree | 54d62fd7caf9d8e6bfdda4b868786d347ea45ada | |
parent | 2008e147e5c58ac6f81bc2bac87fbc1313d5a38c [diff] [blame] |
Switch the receive path to memory-mapped I/O with PACKET_RX_RING. Change-Id: I93231de8f108db782eaa43aceb6cc5281d3739c4
diff --git a/tun.h b/tun.h index 946ab47..bcdd10e 100644 --- a/tun.h +++ b/tun.h
@@ -21,10 +21,12 @@ #include <linux/if.h> #include "clatd.h" +#include "ring.h" struct tun_data { char device4[IFNAMSIZ]; int read_fd6, write_fd6, fd4; + struct packet_ring ring; }; int tun_open();