diff --git a/ChangeLog b/ChangeLog index 73af593..5849a57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,12 @@ -$Id: ChangeLog,v 1.129 2009/10/11 17:16:59 stpohle Exp $ +$Id: ChangeLog,v 1.130 2009/12/10 15:32:55 stpohle Exp $ Version 0.11.8.99 ================== +- fixed: counter pkg_lastid became > 32767 almost messages are lost + in cache managment + patch from: Michel Bernay + - fixed: bug with selecting a player gfx. - got a big patch file from Michel Bernay which fixes: diff --git a/src/packets.c b/src/packets.c index a166f4b..2bcd9a8 100644 --- a/src/packets.c +++ b/src/packets.c @@ -1810,8 +1810,9 @@ send_pkg (struct pkg *packet, _net_addr * addr) /* set the id for the packet and the network flags * the id is needed for the inpkg index to check for - * double reached packets */ - packet->h.id = HTON16 (pkg_lastid++); + * double reached packets + * The id is limited to 32700 if */ + packet->h.id = HTON16 (pkg_lastid++ % 32767); if (bman.net_ai_family != PF_INET) packet->h.flags = packet->h.flags | PKGF_ipv6; udp_send (bman.sock, (char *) packet, NTOH16 (packet->h.len), &addr->sAddr, bman.net_ai_family);