Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba771c22 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9420774 from c9a8d12b to udc-release

Change-Id: Ib281f7b127f7de9b3e8388227df76e83f8947ffb
parents bb194457 c9a8d12b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -75,6 +75,14 @@
#include "tests/tun_forwarder.h"
#include "tests/unsolicited_listener/unsolicited_event_listener.h"

// This mainline module test still needs to be able to run on pre-S devices,
// and thus may run across pre-4.9 non-eBPF capable devices like the Pixel 2.
#define SKIP_IF_BPF_NOT_SUPPORTED                           \
    do {                                                    \
        if (!android::bpf::isAtLeastKernelVersion(4, 9, 0)) \
            GTEST_SKIP() << "Skip: bpf is not supported.";  \
    } while (0)

// Valid VPN netId range is 100 ~ 65535
constexpr int TEST_VPN_NETID = 65502;
constexpr int MAXPACKET = (8 * 1024);