From 11dab620bd5dcd38cdff7c02480328b737f628ef Mon Sep 17 00:00:00 2001 From: Glen Gibb Date: Tue, 16 Jun 2009 10:19:46 -0700 Subject: [PATCH] Flow expiry: Populate idle_timeout field of ofp_flow_expire Copy value from the nx_flow_end struct passed into the function. --- secchan/flow-end.c | 1 + 1 file changed, 1 insertion(+) diff --git a/secchan/flow-end.c b/secchan/flow-end.c index 82b0186..cc2a505 100644 --- a/secchan/flow-end.c +++ b/secchan/flow-end.c @@ -207,6 +207,7 @@ send_ofp_expired(const struct nx_flow_end *nfe, const struct flow_end_data *fe) } /* 'duration' is in seconds, but we keeping track of milliseconds. */ ofe->duration = htonl((ntohll(nfe->end_time)-ntohll(nfe->init_time))/1000); + ofe->idle_timeout = nfe->idle_timeout; ofe->packet_count = nfe->packet_count; ofe->byte_count = nfe->byte_count;