diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2014-06-03 12:56:38 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2014-06-11 12:42:20 +0900 |
commit | d44fac888a441cf21111358f43384f3942399d5d (patch) | |
tree | 2a3dfdecd85d5c0ac00c37a35208e1565f9c84c5 /clatd.h | |
parent | 10e8827d636a72a7bcdfd52d15bad9342ae2a0a6 (diff) | |
download | android_external_android-clat-d44fac888a441cf21111358f43384f3942399d5d.tar.gz android_external_android-clat-d44fac888a441cf21111358f43384f3942399d5d.tar.bz2 android_external_android-clat-d44fac888a441cf21111358f43384f3942399d5d.zip |
Use a packet socket to receive packets.
Combined with the previous change to send on a raw socket
instead of a tunnel interface, this allows us to get rid of the
clat interface and remove all the routing configuration code.
Bug: 15340961
Change-Id: I9d9b90f9b4f58dcc3c102abcdc32a2c7ee86b01d
Diffstat (limited to 'clatd.h')
-rw-r--r-- | clatd.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ #define MAXMTU 1500 #define PACKETLEN (MAXMTU+sizeof(struct tun_pi)) -#define CLATD_VERSION "1.2" +#define CLATD_VERSION "1.3" // how frequently (in seconds) to poll for an address change while traffic is passing #define INTERFACE_POLL_FREQUENCY 30 @@ -32,7 +32,7 @@ #define NO_TRAFFIC_INTERFACE_POLL_FREQUENCY 90 struct tun_data { - char device6[IFNAMSIZ], device4[IFNAMSIZ]; + char device4[IFNAMSIZ]; int read_fd6, write_fd6, fd4; }; |