From 8d8aeb5d03aeb246ba94655234a05ca27ed6cd62 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sat, 18 Jul 2026 23:43:55 +0200 Subject: [PATCH] Define ALL_VIFS if necessary Linux defines both ALL_MIFS and ALL_VIFS. FreeBSD has only ALL_VIFS in its headers. OpenBSD does not know any of them. Reuse the trick from ALL_MIFS and set ALL_VIFS to -1 in iface.h if it is not defined. Signed-off-by: Alexander Bluhm --- src/iface.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/iface.h b/src/iface.h index bcbe1b6..5750c53 100644 --- a/src/iface.h +++ b/src/iface.h @@ -15,6 +15,10 @@ #define ALL_MIFS (vifi_t)-1 #endif +#ifndef ALL_VIFS +#define ALL_VIFS (vifi_t)-1 +#endif + #define DEFAULT_THRESHOLD 1 /* Packet TTL must be at least 1 to pass */ #define NO_VIF ALL_VIFS