X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdpif-netdev.c;h=2f4463e6d4783851a1d1d01615b8b53da0c5d462;hb=3bcf3e33e9cfb7fd837086bfa8e627110d84dce8;hp=7d31a69bb71a3e9d0e23799b643ed459f9f1548c;hpb=659586efcf6f9539282da9447007897907c41112;p=openvswitch diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 7d31a69b..2f4463e6 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -1280,7 +1280,8 @@ dp_netdev_output_control(struct dp_netdev *dp, const struct ofpbuf *packet, } msg_size = sizeof *header + packet->size; - msg = ofpbuf_new(msg_size); + msg = ofpbuf_new(msg_size + DPIF_RECV_MSG_PADDING); + ofpbuf_reserve(msg, DPIF_RECV_MSG_PADDING); header = ofpbuf_put_uninit(msg, sizeof *header); header->type = queue_no; header->length = msg_size;