summaryrefslogtreecommitdiff
path: root/ofproto/pktbuf.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2012-01-03 10:27:04 -0800
committerEthan Jackson <ethan@nicira.com>2012-01-10 14:29:17 -0800
commitec14ac26857f49968e48fa7b1ad85a07c1bfcc8d (patch)
tree8a4616c27b2e0a477e833e94f7133cc4ebed7b7c /ofproto/pktbuf.h
parentc499c75db61f296041d7c39878c4f8cfea7671d5 (diff)
downloadopenvswitch-ec14ac26857f49968e48fa7b1ad85a07c1bfcc8d.tar.gz
pktbuf: Directly use pointers in pktbuf_save().
In future patches, directly using a void * pointer in the pktbuf_save() definition will simplify the code. Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'ofproto/pktbuf.h')
-rw-r--r--ofproto/pktbuf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ofproto/pktbuf.h b/ofproto/pktbuf.h
index 67f4973c2..82d7a85b6 100644
--- a/ofproto/pktbuf.h
+++ b/ofproto/pktbuf.h
@@ -17,6 +17,7 @@
#ifndef PKTBUF_H
#define PKTBUF_H 1
+#include <stddef.h>
#include <stdint.h>
struct pktbuf;
@@ -26,7 +27,8 @@ 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);