Skip to content

Commit

Permalink
FatFlow: wrong port calculation
Browse files Browse the repository at this point in the history
The macro to extract port from proto_port combination uses logical
and instead of binary and, resulting in wrong port calulcation.

Change-Id: Icc4c7e6038a6e15ad21f17fa03bb377b724372ac
Partial-BUG: 1518234
  • Loading branch information
anandhk-juniper committed Dec 15, 2015
1 parent a345a66 commit 2b59f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vr_interface.h
Expand Up @@ -175,7 +175,7 @@ struct vr_vrf_assign {
#define VIF_FAT_FLOW_SCTP_INDEX 3
#define VIF_FAT_FLOW_MAXPROTO_INDEX 4

#define VIF_FAT_FLOW_PORT(p_p) ((p_p) && 0xFFFF)
#define VIF_FAT_FLOW_PORT(p_p) ((p_p) & 0xFFFF)
#define VIF_FAT_FLOW_PROTOCOL(p_p) (((p_p) >> 16) & 0xFF)

struct vr_interface {
Expand Down

0 comments on commit 2b59f28

Please sign in to comment.