From c8e40c149ff8e91c2c3cc74ff9f0f6d88ecdcc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Fri, 21 Oct 2022 00:01:39 +0000 Subject: [PATCH] flag test.o bpf program as being test only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: 254543135 Signed-off-by: Maciej Żenczykowski Change-Id: I8ee7b0a552510baabb7c29d94521291b8b526692 --- bpf_progs/test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bpf_progs/test.c b/bpf_progs/test.c index d42205f95a..c11c35843b 100644 --- a/bpf_progs/test.c +++ b/bpf_progs/test.c @@ -40,6 +40,10 @@ #define TETHERING_GID AID_NETWORK_STACK #endif +// This is non production code, only used for testing +// Needed because the bitmap array definition is non-kosher for pre-T OS devices. +#define THIS_BPF_PROGRAM_IS_FOR_TEST_PURPOSES_ONLY + #include "bpf_helpers.h" #include "bpf_net_helpers.h" #include "bpf_tethering.h"