No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej Żenczykowski ca9466c768 clatd: remove ipv6 address monitoring
This code/logic is spurious, because the majority of packets
are translated by eBPF, so whether the daemon runs or not,
usually just doesn't matter - bpf will handle them anyway.

As such what we actually care about is that the daemon
is terminated at the same time as the bpf map configuration
is removed.  This is done by jni native code stopClatdProcess()
which is called from ClatCoordinator java code immediately
after maybeStopBpf().

Additionally on ipv6 address change we don't even terminate
the daemon - we simply stop the event loop, but still block
in main() until we receive SIGTERM/SIGKILL.

(This was done a while ago to fix a bunch of issues with
daemon dieing and being killed racing with each other)

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I86d203a244838166ed1fbec1bc48a680e433f9fa
2023-03-16 09:36:10 +00:00
.clang-format clatd's .clang-format shouldn't be kept in sync with system/core 2019-01-17 03:53:02 +00:00
Android.bp clatd: remove ipv6 address monitoring 2023-03-16 09:36:10 +00:00
BUGS clat: add support for ESP, mirroring existing GRE support 2019-08-20 17:51:28 -07:00
clatd.c clatd: remove ipv6 address monitoring 2023-03-16 09:36:10 +00:00
clatd.h clatd: remove ipv6 address monitoring 2023-03-16 09:36:10 +00:00
clatd_test.cpp clatd: remove ipv6 address monitoring 2023-03-16 09:36:10 +00:00
common.h Move main() out of clatd.c. 2019-01-04 19:08:45 +09:00
config.h switch from using packet ring to normal read 2021-11-09 19:32:33 +00:00
debug.h Don't compile packet dumping code by default. 2013-02-01 10:49:49 +09:00
dump.c clatd: introduce MAXDUMPLEN 2023-01-30 22:31:29 +00:00
dump.h Fix some build errors when CLAT_DEBUG is set to 1 2020-10-20 09:23:49 +00:00
icmp.c Re-indent clatd code with clang-format 2018-12-11 10:12:47 +08:00
icmp.h Support translating ICMP errors. 2013-04-12 13:42:58 +09:00
ipv4.c Clatd changes for move of libipchecksum. 2021-12-14 03:19:12 +00:00
ipv6.c Clatd changes for move of libipchecksum. 2021-12-14 03:19:12 +00:00
LICENSE android clat service 2012-11-12 15:59:12 -08:00
logging.c Re-indent clatd code with clang-format 2018-12-11 10:12:47 +08:00
logging.h android clat service 2012-11-12 15:59:12 -08:00
main.c clatd: bump version number 2023-02-06 16:02:14 +00:00
METADATA Add METADATA to android-clat: Apache2=NOTICE 2020-04-28 10:43:07 -07:00
MODULE_LICENSE_APACHE2 android clat service 2012-11-12 15:59:12 -08:00
NOTICE android clat service 2012-11-12 15:59:12 -08:00
OWNERS android-clat: switch OWNERS to core networking 2022-02-08 15:26:31 -08:00
PREUPLOAD.cfg clatd: Add clang-format style config and pre-upload hook. 2018-12-11 10:04:23 +08:00
TEST_MAPPING Remove libnetdbpf_test from TEST_MAPPING 2022-01-23 11:48:25 +08:00
translate.c Clatd changes for move of libipchecksum. 2021-12-14 03:19:12 +00:00
translate.h Move main() out of clatd.c. 2019-01-04 19:08:45 +09:00