[ovs-dev] [PATCH v2] ofproto-dpif-ipfix: Fix an issue in flow key part

2018-02-14 Thread Daniel Benli Ye
imit the max length. Signed-off-by: Daniel Benli Ye --- ofproto/ofproto-dpif-ipfix.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/ofproto/ofproto-dpif-ipfix.c b/ofproto/ofproto-dpif-ipfix.c index c7ddeb9..4d9fe78 100644 --- a/ofproto/ofproto-dpif

[ovs-dev] [PATCH v1] ofproto-dpif-ipfix: Fix an issue in flow key part

2018-02-14 Thread Daniel Benli Ye
From: Benli Ye As struct ipfix_data_record_flow_key_iface didn't calculate its length in flow key part, it may cause problem when flow key part length is not enough. Use MAX_IF_LEN and MAX_IF_DESCR to pre-allocate memory for ipfix_data_record_flow_key_iface. Signed-off-by: Daniel Ben