mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-20 13:28:22 +02:00
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:
parent
ed83236222
commit
79f7f5f5dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue