Merge "BpfInterfaceMapUpdater is only viable on T+" into main

This commit is contained in:
Maciej Żenczykowski 2024-01-25 07:15:14 +00:00 • committed by Gerrit Code Review
commit 7b2643f65f

View file

@ -15,6 +15,7 @@
*/
package com.android.server.net;
import android.os.Build;
import android.content.Context;
import android.net.INetd;
import android.os.Handler;
@ -25,6 +26,8 @@ import android.system.ErrnoException;
import android.util.IndentingPrintWriter;
import android.util.Log;
import androidx.annotation.RequiresApi;
import com.android.internal.annotations.VisibleForTesting;
import com.android.net.module.util.BaseNetdUnsolicitedEventListener;
import com.android.net.module.util.BpfDump;
@ -36,6 +39,7 @@ import com.android.net.module.util.Struct.S32;
/**
* Monitor interface added (without removed) and right interface name and its index to bpf map.
*/
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
public class BpfInterfaceMapUpdater {
private static final String TAG = BpfInterfaceMapUpdater.class.getSimpleName();
// This is current path but may be changed soon.