Skip to content

Commit

Permalink
For non tcp/udp/icmp/sctp protocols, port values used in the
Browse files Browse the repository at this point in the history
five tuple of the flow key should be 0

Closes-BUG: #1447558

Conflicts:

	dp-core/vr_proto_ip6.c

Change-Id: Ie165da334f5f6e4126bc375a9d3652d0bda6cff9
  • Loading branch information
anandhk-juniper authored and divakardhar committed Jun 3, 2015
1 parent cd8648e commit 9865b6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dp-core/vr_proto_ip.c
Expand Up @@ -857,9 +857,13 @@ vr_inet_proto_flow(struct vrouter *router, unsigned short vrf,
sport = 0;
dport = icmph->icmp_type;
}
} else {
} else if ((ip->ip_proto == VR_IP_PROTO_TCP) ||
(ip->ip_proto == VR_IP_PROTO_UDP)) {
sport = *t_hdr;
dport = *(t_hdr + 1);
} else {
sport = 0;
dport = 0;
}

nh_id = vr_inet_flow_nexthop(pkt, vlan);
Expand Down

0 comments on commit 9865b6e

Please sign in to comment.