|
|
@ -1810,8 +1810,9 @@ send_pkg (struct pkg *packet, _net_addr * addr)
|
|
|
|
|
|
|
|
|
|
|
|
/* set the id for the packet and the network flags
|
|
|
|
/* set the id for the packet and the network flags
|
|
|
|
* the id is needed for the inpkg index to check for
|
|
|
|
* the id is needed for the inpkg index to check for
|
|
|
|
* double reached packets */
|
|
|
|
* double reached packets
|
|
|
|
packet->h.id = HTON16 (pkg_lastid++);
|
|
|
|
* The id is limited to 32700 if */
|
|
|
|
|
|
|
|
packet->h.id = HTON16 (pkg_lastid++ % 32767);
|
|
|
|
if (bman.net_ai_family != PF_INET)
|
|
|
|
if (bman.net_ai_family != PF_INET)
|
|
|
|
packet->h.flags = packet->h.flags | PKGF_ipv6;
|
|
|
|
packet->h.flags = packet->h.flags | PKGF_ipv6;
|
|
|
|
udp_send (bman.sock, (char *) packet, NTOH16 (packet->h.len), &addr->sAddr, bman.net_ai_family);
|
|
|
|
udp_send (bman.sock, (char *) packet, NTOH16 (packet->h.len), &addr->sAddr, bman.net_ai_family);
|
|
|
|