patch send_pkg pkg_lastid was limited and correct converted..

origin
stpohle 16 years ago
parent 94e90a2e10
commit 1aa3f5e7ad

@ -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:

@ -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);

Loading…
Cancel
Save