summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej enczykowski <maze@google.com>2019-03-30 05:30:24 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-03-30 05:30:24 -0700
commit5b9d637742a1a9001a8126ec98cc99495cbdf2fb (patch)
tree20ae6f8e1ea2f9aca0c9603dfab3c780680be152
parente9d8305b8c502ec65e74b0592f7abc197be3e955 (diff)
parent95da58bb1848ccdde2082b483f4fe62647d21ff1 (diff)
downloadplatform_external_android-clat-5b9d637742a1a9001a8126ec98cc99495cbdf2fb.tar.gz
platform_external_android-clat-5b9d637742a1a9001a8126ec98cc99495cbdf2fb.tar.bz2
platform_external_android-clat-5b9d637742a1a9001a8126ec98cc99495cbdf2fb.zip
clat - turn off spurious log messages caused by IPv6 packets am: 4e1601e533
am: 95da58bb18 Change-Id: I997f219909e35cb809a97e9550c8f354958c0122
-rw-r--r--clatd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clatd.c b/clatd.c
index 3ccceea..94a0f06 100644
--- a/clatd.c
+++ b/clatd.c
@@ -430,6 +430,11 @@ void read_packet(int read_fd, int write_fd, int to_ipv6) {
}
uint16_t proto = ntohs(tun_header->proto);
+ if (proto == ETH_P_IPV6) {
+ // kernel IPv6 stack spams us with router/neighbour solication,
+ // multicast group joins, etc. which otherwise fills the log...
+ return;
+ }
if (proto != ETH_P_IP) {
logmsg(ANDROID_LOG_WARN, "%s: unknown packet type = 0x%x", __func__, proto);
return;