X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fpktbuf.h;h=82d7a85b6df06a951682cb58d7568bc03e60dc3f;hb=cf7cf3fec6a302cae96234ee58860ad85432a5e4;hp=b27b7490a41b67d40e6d3ad7c8784380c0f0a766;hpb=3b01baa3970139c3a195017ab1ea3e42761e3db2;p=sliver-openvswitch.git diff --git a/ofproto/pktbuf.h b/ofproto/pktbuf.h index b27b7490a..82d7a85b6 100644 --- a/ofproto/pktbuf.h +++ b/ofproto/pktbuf.h @@ -17,6 +17,7 @@ #ifndef PKTBUF_H #define PKTBUF_H 1 +#include #include struct pktbuf; @@ -26,7 +27,9 @@ int pktbuf_capacity(void); struct pktbuf *pktbuf_create(void); void pktbuf_destroy(struct pktbuf *); -uint32_t pktbuf_save(struct pktbuf *, struct ofpbuf *buffer, uint16_t in_port); +uint32_t pktbuf_save(struct pktbuf *, const void *buffer, size_t buffer_size, + uint16_t in_port); +uint32_t pktbuf_get_null(void); int pktbuf_retrieve(struct pktbuf *, uint32_t id, struct ofpbuf **bufferp, uint16_t *in_port); void pktbuf_discard(struct pktbuf *, uint32_t id);