X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvconn.c;h=5da5026272fe787c87f8e31c428dc9bb4eaeea36;hb=122d6b053b317c7fcf69314c57bccffd7b420871;hp=8e6374e7031def445426f852873d8d6ef3e15846;hpb=90bf1e0732ac9b11dd51ca856b635cac1f0269c1;p=openvswitch diff --git a/lib/vconn.c b/lib/vconn.c index 8e6374e7..5da50262 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -730,7 +730,7 @@ vconn_transact_noreply(struct vconn *vconn, struct ofpbuf *request, } /* Send barrier. */ - make_openflow(sizeof(struct ofp_header), OFPT_BARRIER_REQUEST, &barrier); + barrier = ofputil_encode_barrier_request(); barrier_xid = ((struct ofp_header *) barrier->data)->xid; error = vconn_send_block(vconn, barrier); if (error) {