diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-02-11 13:56:45 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-02-12 13:55:46 -0800 |
| commit | 0ab8e15fd7b5618c0c513c69ab6fd4155eb13452 (patch) | |
| tree | 80c24c86fe9c20ee6724fcfca0523b40051ccfc7 /lib/ofpbuf.h | |
| parent | 5019f688d4e3117960503d57978ff2e0fb3771e0 (diff) | |
| download | openvswitch-0ab8e15fd7b5618c0c513c69ab6fd4155eb13452.tar.gz | |
ofpbuf: New function ofpbuf_to_string().
Useful for debugging.
From Jean Tourrilhes <jt@hpl.hp.com>.
Diffstat (limited to 'lib/ofpbuf.h')
| -rw-r--r-- | lib/ofpbuf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index b65f79ee6..9072cc474 100644 --- a/lib/ofpbuf.h +++ b/lib/ofpbuf.h @@ -74,6 +74,8 @@ void ofpbuf_clear(struct ofpbuf *); void *ofpbuf_pull(struct ofpbuf *, size_t); void *ofpbuf_try_pull(struct ofpbuf *, size_t); +char *ofpbuf_to_string(const struct ofpbuf *, size_t maxbytes); + #ifdef __cplusplus } #endif |
