ofp-util: Include cookie when encoding OFPT_FLOW_REMOVED messages.
authorBen Pfaff <blp@nicira.com>
Fri, 20 May 2011 23:42:40 +0000 (16:42 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 20 May 2011 23:42:40 +0000 (16:42 -0700)
Reported-by: kk yap <yapkke@stanford.edu>
Tested-by: kk yap <yapkke@stanford.edu>
lib/ofp-util.c

index 4618567e5148b5651bf6a5cf207ec0bc0d7d7af4..e723fd2e7a01c42163522ed1d6e1fb1ab7a61197 100644 (file)
@@ -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);