diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-07-28 17:23:47 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-07-28 13:27:47 +0200 |
commit | d6f4a61dde127c6154f7933b0a4003740b6a0768 (patch) | |
tree | bc622e9e39732618d03d7133a051eb0d13fcb954 /lib/stream.h | |
parent | lib: linklist: clean up insert-before/after dups (diff) | |
download | frr-d6f4a61dde127c6154f7933b0a4003740b6a0768.tar.xz frr-d6f4a61dde127c6154f7933b0a4003740b6a0768.zip |
lib: add 3-byte stream functions
This will be used for BGP MPLS labels.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/stream.h')
-rw-r--r-- | lib/stream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stream.h b/lib/stream.h index 738034438..4e9b21df5 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -167,6 +167,8 @@ extern int stream_putc (struct stream *, u_char); extern int stream_putc_at (struct stream *, size_t, u_char); extern int stream_putw (struct stream *, u_int16_t); extern int stream_putw_at (struct stream *, size_t, u_int16_t); +extern int stream_put3 (struct stream *, u_int32_t); +extern int stream_put3_at (struct stream *, size_t, u_int32_t); extern int stream_putl (struct stream *, u_int32_t); extern int stream_putl_at (struct stream *, size_t, u_int32_t); extern int stream_putq (struct stream *, uint64_t); @@ -186,6 +188,8 @@ extern u_char stream_getc (struct stream *); extern u_char stream_getc_from (struct stream *, size_t); extern u_int16_t stream_getw (struct stream *); extern u_int16_t stream_getw_from (struct stream *, size_t); +extern u_int32_t stream_get3 (struct stream *); +extern u_int32_t stream_get3_from (struct stream *, size_t); extern u_int32_t stream_getl (struct stream *); extern u_int32_t stream_getl_from (struct stream *, size_t); extern uint64_t stream_getq (struct stream *); |