summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipfix-export
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ipfix-export')
-rw-r--r--src/vnet/ipfix-export/flow_api.c8
-rw-r--r--src/vnet/ipfix-export/ipfix_export.api2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/ipfix-export/flow_api.c b/src/vnet/ipfix-export/flow_api.c
index 226db2686ac..f4b3fc8be3b 100644
--- a/src/vnet/ipfix-export/flow_api.c
+++ b/src/vnet/ipfix-export/flow_api.c
@@ -264,8 +264,8 @@ static void
return;
classify_table_index = ntohl (mp->table_id);
- ip_version = ntohl (mp->ip_version);
- transport_protocol = ntohl (mp->transport_protocol);
+ ip_version = (mp->ip_version == ADDRESS_IP4) ? 4 : 6;
+ transport_protocol = mp->transport_protocol;
is_add = mp->is_add;
if (fcm->src_port == 0)
@@ -340,8 +340,8 @@ send_ipfix_classify_table_details (u32 table_index,
mp->_vl_msg_id = ntohs (VL_API_IPFIX_CLASSIFY_TABLE_DETAILS);
mp->context = context;
mp->table_id = htonl (table->classify_table_index);
- mp->ip_version = htonl (table->ip_version);
- mp->transport_protocol = htonl (table->transport_protocol);
+ mp->ip_version = (table->ip_version == 4) ? ADDRESS_IP4 : ADDRESS_IP6;
+ mp->transport_protocol = table->transport_protocol;
vl_api_send_msg (reg, (u8 *) mp);
}
diff --git a/src/vnet/ipfix-export/ipfix_export.api b/src/vnet/ipfix-export/ipfix_export.api
index efd967d1844..147d7909252 100644
--- a/src/vnet/ipfix-export/ipfix_export.api
+++ b/src/vnet/ipfix-export/ipfix_export.api
@@ -13,7 +13,7 @@
* limitations under the License.
*/
-option version = "2.0.1";
+option version = "2.0.2";
import "vnet/ip/ip_types.api";