From: Ben Pfaff Date: Fri, 20 May 2011 23:42:40 +0000 (-0700) Subject: ofp-util: Include cookie when encoding OFPT_FLOW_REMOVED messages. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fb563b94c6b265f5dae9965fe33392716a7886e;p=openvswitch ofp-util: Include cookie when encoding OFPT_FLOW_REMOVED messages. Reported-by: kk yap Tested-by: kk yap --- 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);