d44fac888a441cf21111358f43384f3942399d5d |
|
02-Jun-2014 |
Lorenzo Colitti <lorenzo@google.com> |
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
/external/android-clat/dump.c
|
fcac410fa15613873a07143ccd46470b869346a3 |
|
25-Feb-2014 |
Brian Carlstrom <bdc@google.com> |
Use uint8_t not char for binary data to avoid -Wall -Werror issues on x86 builds Change-Id: Ib61e67f15360c27c3ebf61f870a9482217c52357
/external/android-clat/dump.c
|
57d480d2b425ef20d8b6f84abd4e9e3209fa9422 |
|
09-Feb-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Support translating fragmented packets. Bug: 11542311 Change-Id: I14a20b9ac669cdb5927f6ac26147bb0109099497
/external/android-clat/dump.c
|
07f0265830fcae2632159e9993b93a161d7ea23b |
|
20-Feb-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Modify the pseudo-header checksum functions. - Remove the initial checksum, which we don't use anywhere. - Add the upper-layer protocol to the IPv6 function. Currently this is always the same as the next header field in the IPv6 header, but technically it's the upper-layer header after all the extension headers. This is required to support fragments. Bug: 11542311 Change-Id: Ie1a20fa74ee5bc933c1014bab74ae2957979b2b8
/external/android-clat/dump.c
|
d90841824dc00f65a48a789396c7f428807432ca |
|
21-Mar-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Pass around packet data instead of fds The current code calls all the translation functions one after another, accumulating the translated packet into local variables on the stack and calling writev() at the end. This does not allow calling the translation functions re-entrantly, which is needed, for example, to translate ICMP errors (which contain the packet that caused them). Define a clat_packet type to wrap the array of iovecs and an enum of packet positions. Also clean up the code a bit: get rid of a fair bit of duplicated code (though there is still some left), get rid of some redundant memcpy statements, fix style issues, etc. Bug: 8276725 Change-Id: Ib58d2348894e82275234fc67dbdb1f82753f204f
/external/android-clat/dump.c
|
f913fe49272286a7f1e58d94a208b6dc06a51fd2 |
|
08-Apr-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Slightly improve dumping packets Add a function for dumping iovecs, and make hexdumps clearer by adding spaces between bytes. Bug: 8276725 Change-Id: Ifb2f8317613d05fa6bd600700090a6df258cde08
/external/android-clat/dump.c
|
0278627f576832860af2d84e04e383ecaa92d74f |
|
08-Apr-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Pass in the length to pseudo checksum functions Currently, the pseudo-header checksum calculation functions get the transport layer length from the IP header. This requires that the length be known at IP header construction time, which does not allow transport layer translation functions to change the length of the packet later. Have the transport functions pass in the size directly. Bug: 8276725 Change-Id: I76a93f5e66181bec21d68f779c68c54090a77c33
/external/android-clat/dump.c
|
f68200ab1a5c559866a87e51d0d52e3c74b02343 |
|
01-Feb-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Don't compile packet dumping code by default. Bug: 7664960 Change-Id: Ieb56bcc010d0e12264d43e0a0dfcb1beb479d4e2
/external/android-clat/dump.c
|
a45056e35c1af2a0f0a6eed258fd5fdf4846a79f |
|
23-Mar-2012 |
Daniel Drown <dan-android@drown.org> |
android clat service This software provides the nat 4->6 translation needed for the "clat" part of the 464xlat standard. It is needed for better IPv4 application support while on an IPv6-only mobile network connection using 464xlat's nat64 (such as T-Mobile's IPv6 trial). A general diagram of how 464xlat works: http://dan.drown.org/android/clat/Clat-Plat.png Depends-on: I2392f8127dcd90d16b0f20ff31bcc5aa096db464 Change-Id: If2bc6916fc66fd4bca7cc241c83cfae839b82e15 Signed-off-by: Daniel Drown <dan-android@drown.org>
/external/android-clat/dump.c
|