]> granicus.if.org Git - libevent/commitdiff
remove artifical 16-bit restriction on evrpc entries
authorNiels Provos <provos@gmail.com>
Sat, 24 Feb 2007 08:33:07 +0000 (08:33 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 24 Feb 2007 08:33:07 +0000 (08:33 +0000)
svn:r337

event.h
event_tagging.c

diff --git a/event.h b/event.h
index 65741d42e4affedc0361794d48778908e6e729c0..3f2032dd068ee675d8d403714cfe1ef154da0735 100644 (file)
--- a/event.h
+++ b/event.h
@@ -300,7 +300,7 @@ void evbuffer_setcb(struct evbuffer *, void (*)(struct evbuffer *, size_t, size_
 void evtag_init(void);
 
 void evtag_marshal(struct evbuffer *evbuf, u_int8_t tag, const void *data,
-    u_int16_t len);
+    u_int32_t len);
 
 void encode_int(struct evbuffer *evbuf, u_int32_t number);
 
index b77494d7f45693e6e17c41dcddeb97a0a1f8c3b5..6b1272435cb4e34770624b8ea3080c0e952b299d 100644 (file)
@@ -112,7 +112,7 @@ encode_int(struct evbuffer *evbuf, u_int32_t number)
 
 void
 evtag_marshal(struct evbuffer *evbuf, u_int8_t tag,
-    const void *data, u_int16_t len)
+    const void *data, u_int32_t len)
 {
        evbuffer_add(evbuf, &tag, sizeof(tag));
        encode_int(evbuf, len);
@@ -259,7 +259,7 @@ int
 evtag_unmarshal(struct evbuffer *src, u_int8_t *ptag, struct evbuffer *dst)
 {
        u_int8_t tag;
-       u_int16_t len;
+       u_int32_t len;
        u_int32_t integer;
 
        if (evbuffer_remove(src, &tag, sizeof(tag)) != sizeof(tag))
@@ -287,7 +287,7 @@ evtag_unmarshal_int(struct evbuffer *evbuf, u_int8_t need_tag,
     u_int32_t *pinteger)
 {
        u_int8_t tag;
-       u_int16_t len;
+       u_int32_t len;
        u_int32_t integer;
 
        if (evbuffer_remove(evbuf, &tag, sizeof(tag)) != sizeof(tag) ||