X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdpif-linux.c;h=15283b282cb398642f40ea7d111694db8e607d42;hb=3bcf3e33e9cfb7fd837086bfa8e627110d84dce8;hp=87c9f327c79bf95b5357d64e3cd923c78df5bcd0;hpb=3abc4a1a6c29ebecffeecedd582c64e0bb7d4c53;p=openvswitch diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index 87c9f327..15283b28 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -460,7 +460,8 @@ dpif_linux_recv(struct dpif *dpif_, struct ofpbuf **bufp) int retval; int error; - buf = ofpbuf_new(65536); + buf = ofpbuf_new(65536 + DPIF_RECV_MSG_PADDING); + ofpbuf_reserve(buf, DPIF_RECV_MSG_PADDING); retval = read(dpif->fd, ofpbuf_tail(buf), ofpbuf_tailroom(buf)); if (retval < 0) { error = errno;