summaryrefslogtreecommitdiffstats
path: root/lib/stream.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-01-10 23:38:14 +0000
committerChris Hall <GMCH@hestia.halldom.com>2010-01-10 23:38:14 +0000
commit5ef5e27f2418316855e388ec8f6b87cdf140bd04 (patch)
treef42f39f1047a85b4f880b80ca2655b7eb665021d /lib/stream.c
parent020867eda32194967de7ab6f1c1128147a9ed0a9 (diff)
downloadquagga-5ef5e27f2418316855e388ec8f6b87cdf140bd04.tar.bz2
quagga-5ef5e27f2418316855e388ec8f6b87cdf140bd04.tar.xz
Further work-in-progress
modified: .gitignore modified: bgpd/Makefile.am modified: bgpd/bgp.h modified: bgpd/bgp_common.h modified: bgpd/bgp_connection.c modified: bgpd/bgp_connection.h modified: bgpd/bgp_fsm.c modified: bgpd/bgp_msg_write.c modified: bgpd/bgp_msg_write.h modified: bgpd/bgp_notification.c modified: bgpd/bgp_notification.h modified: bgpd/bgp_open_state.c modified: bgpd/bgp_open_state.h modified: bgpd/bgp_packet.h new file: bgpd/bgp_route_refresh.c new file: bgpd/bgp_route_refresh.h modified: bgpd/bgp_session.c modified: bgpd/bgp_session.h modified: lib/Makefile.am new file: lib/confirm.h modified: lib/memtypes.c modified: lib/stream.c modified: lib/stream.h modified: lib/zassert.h
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/stream.c b/lib/stream.c
index 36bbba1e..dc636361 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -236,6 +236,20 @@ stream_set_getp (struct stream *s, size_t pos)
s->getp = pos;
}
+void
+stream_set_endp (struct stream *s, size_t pos)
+{
+ STREAM_VERIFY_SANE(s);
+
+ if (!ENDP_VALID (s, pos))
+ {
+ STREAM_BOUND_WARN (s, "set endp");
+ return ;
+ }
+
+ s->endp = pos;
+}
+
/* Forward pointer. */
void
stream_forward_getp (struct stream *s, size_t size)