Skip to content

Commit

Permalink
Fix VXLAN flags initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
rixed committed Jul 3, 2019
1 parent 61468d7 commit 7a8fe22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/proto/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ static void vxlan_proto_info_ctor(struct vxlan_proto_info *info, struct parser *
proto_info_ctor(&info->info, parser, parent, hdr_len, payload);
info->vni = vni;
info->group_policy_id = group_policy_id;
info->gbp_extension = flags & 0x80;
info->vni_set = flags & 0x08;
info->dont_learn = flags & 0x400;
info->policy_applied = flags & 0x8000;
info->gbp_extension = !!(flags & 0x80);
info->vni_set = !!(flags & 0x08);
info->dont_learn = !!(flags & 0x400);
info->policy_applied = !!(flags & 0x8000);
}

/*
Expand Down

0 comments on commit 7a8fe22

Please sign in to comment.