bundle_processor: Use HAS_FLAG macro for checking flag

This makes the code more readable. See !165.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
This commit is contained in:
Felix Walter 2024-06-24 14:34:30 +02:00
parent ed83236222
commit 79f7f5f5dc

View file

@ -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,