From 7fb563b94c6b265f5dae9965fe33392716a7886e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 20 May 2011 16:42:40 -0700 Subject: [PATCH] ofp-util: Include cookie when encoding OFPT_FLOW_REMOVED messages. Reported-by: kk yap Tested-by: kk yap --- lib/ofp-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 4618567e..e723fd2e 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -1348,6 +1348,7 @@ ofputil_encode_flow_removed(const struct ofputil_flow_removed *fr, ofr = make_openflow_xid(sizeof *ofr, OFPT_FLOW_REMOVED, htonl(0), &msg); ofputil_cls_rule_to_match(&fr->rule, &ofr->match); + ofr->cookie = fr->cookie; ofr->priority = htons(fr->rule.priority); ofr->reason = fr->reason; ofr->duration_sec = htonl(fr->duration_sec); -- 2.30.2