The following changes are made to support flow-lookup for IPv6.
1. Change vr_flow Sandesh message to include family (AF_INET/AF_INET6) and <list> for IP addresses (instead of uint32 for SrcIP and DstIP). The list of IP address will pack both SrcIP and Dst IP (8 bytes for IPv4 and 32 bytes for IPv6, identified by the family field .
2. Defined a 'union' to describe how the flow entry looks for V4 and V6.
3. Added flow_key data structure for V6 addresses. Changed order of fields in flow_key (moved IP addresses to the end), added #defines to access generic/V4/V6 fileds in the flow_key
4. Updated hash/lookup logic to use different key size based on key_family.
5. Other related changes in dp-core and utils
Reviewed: https:/ /review. opencontrail. org/8343 github. org/Juniper/ contrail- vrouter/ commit/ c387561eb84007c bf6b497720987ab 3a45beec2e
Committed: http://
Submitter: Zuul
Branch: master
commit c387561eb84007c bf6b497720987ab 3a45beec2e
Author: Ganesan Prabhakaran <email address hidden>
Date: Fri Mar 13 16:12:11 2015 -0700
The following changes are made to support flow-lookup for IPv6.
1. Change vr_flow Sandesh message to include family (AF_INET/AF_INET6) and <list> for IP addresses (instead of uint32 for SrcIP and DstIP). The list of IP address will pack both SrcIP and Dst IP (8 bytes for IPv4 and 32 bytes for IPv6, identified by the family field .
2. Defined a 'union' to describe how the flow entry looks for V4 and V6.
3. Added flow_key data structure for V6 addresses. Changed order of fields in flow_key (moved IP addresses to the end), added #defines to access generic/V4/V6 fileds in the flow_key
4. Updated hash/lookup logic to use different key size based on key_family.
5. Other related changes in dp-core and utils
Change-Id: I0147c54b8e5a8f 5a046a097a39581 c899fa6f972
Closes-bug: 1398625