From: Niels Provos Date: Sat, 24 Feb 2007 08:33:07 +0000 (+0000) Subject: remove artifical 16-bit restriction on evrpc entries X-Git-Tag: release-2.0.1-alpha~641 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f86cead09999380887752d9a391e0ebd3ee38807;p=libevent remove artifical 16-bit restriction on evrpc entries svn:r337 --- diff --git a/event.h b/event.h index 65741d42..3f2032dd 100644 --- 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); diff --git a/event_tagging.c b/event_tagging.c index b77494d7..6b127243 100644 --- a/event_tagging.c +++ b/event_tagging.c @@ -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) ||