From c8c36b94079760a8e77b7161b6ec86a7b7707a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Thu, 18 Nov 2021 23:29:23 -0800 Subject: [PATCH] isEthernet() - ARPHRD_PPP does not require ethernet headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (this is required to make ipv6 tethering work with at least S.LSI modems) Test: TreeHugger Bug: 207057951 Signed-off-by: Maciej Żenczykowski Change-Id: Ic178db928ec7f74f69d7d4739b3b8439ff026625 --- Tethering/jni/com_android_networkstack_tethering_BpfUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Tethering/jni/com_android_networkstack_tethering_BpfUtils.cpp b/Tethering/jni/com_android_networkstack_tethering_BpfUtils.cpp index 2d679a853f..9838bf180e 100644 --- a/Tethering/jni/com_android_networkstack_tethering_BpfUtils.cpp +++ b/Tethering/jni/com_android_networkstack_tethering_BpfUtils.cpp @@ -174,6 +174,7 @@ static jboolean com_android_networkstack_tethering_BpfUtils_isEthernet(JNIEnv* e case ARPHRD_ETHER: return true; case ARPHRD_NONE: + case ARPHRD_PPP: case ARPHRD_RAWIP: // in Linux 4.14+ rmnet support was upstreamed and this is 519 case 530: // this is ARPHRD_RAWIP on some Android 4.9 kernels with rmnet return false;