From 79f7f5f5dc205e567c8dfd8eb18ae96edea48901 Mon Sep 17 00:00:00 2001 From: Felix Walter Date: Mon, 24 Jun 2024 14:34:30 +0200 Subject: [PATCH] bundle_processor: Use HAS_FLAG macro for checking flag This makes the code more readable. See !165. Signed-off-by: Felix Walter --- components/ud3tn/bundle_processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ud3tn/bundle_processor.c b/components/ud3tn/bundle_processor.c index 7398208..7458a4f 100644 --- a/components/ud3tn/bundle_processor.c +++ b/components/ud3tn/bundle_processor.c @@ -694,7 +694,7 @@ static enum ud3tn_result bundle_forward( int rv = -1; enum bundle_dispatch_reason dr = DISPATCH_REASON_NO_FIB_ENTRY; - if (dst_entry && (dst_entry->flags & FIB_LINK_FLAG_DIRECT) != 0) { + if (dst_entry && HAS_FLAG(dst_entry->flags, FIB_LINK_FLAG_DIRECT)) { LOGF_DEBUG( "BundleProcessor: Attempting direct dispatch for bundle %p via link to %s (status = %d).", bundle,