diff options
author | Subbaiah Venkata <svenkata@google.com> | 2012-03-24 21:10:19 +0100 |
---|---|---|
committer | Avneesh Sachdev <avneesh@opensourcerouting.org> | 2012-04-07 22:53:40 +0200 |
commit | d531050b7bf0f93d4d29a7a2f7b745641778b483 (patch) | |
tree | 82e45741fa3883f6e25a38f2abef4eea107fd54f /lib/stream.h | |
parent | lib: add support for keyed-hashing with MD5 (diff) | |
download | frr-d531050b7bf0f93d4d29a7a2f7b745641778b483.tar.xz frr-d531050b7bf0f93d4d29a7a2f7b745641778b483.zip |
lib: add stream_set_endp()
* lib/stream.[ch]:
- Add stream_set_endp(). This can be used to trim data (for
example, padding) at the end of a stream.
- Fix swapped 'getp' and 'endp' parameters in STREAM_WARN_OFFSETS.
From: Subbaiah Venkata <svenkata@google.com>
Signed-off-by: Avneesh Sachdev <avneesh@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/stream.h')
-rw-r--r-- | lib/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stream.h b/lib/stream.h index 3e4ba7b41..f10aa6d41 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -146,6 +146,7 @@ extern size_t stream_get_size (struct stream *); extern u_char *stream_get_data (struct stream *); extern void stream_set_getp (struct stream *, size_t); +extern void stream_set_endp (struct stream *, size_t); extern void stream_forward_getp (struct stream *, size_t); extern void stream_forward_endp (struct stream *, size_t); |