diff options
author | Maciej enczykowski <maze@google.com> | 2019-03-30 05:34:25 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-03-30 05:34:25 -0700 |
commit | 91aa7ccdb2b92c09535d3e309e315635e6ba62a9 (patch) | |
tree | 20ae6f8e1ea2f9aca0c9603dfab3c780680be152 | |
parent | e6395f1bef4102ad0978f13ea93dcf586653337f (diff) | |
parent | 5b9d637742a1a9001a8126ec98cc99495cbdf2fb (diff) | |
download | android-clat-91aa7ccdb2b92c09535d3e309e315635e6ba62a9.tar.gz |
clat - turn off spurious log messages caused by IPv6 packets am: 4e1601e533 am: 95da58bb18
am: 5b9d637742
Change-Id: I6bff6e790f2f6208041b327486d47ecc6cfdf3a3
-rw-r--r-- | clatd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |