host = from.sin_addr.s_addr;
port = from.sin_port;
- if (p->header.type > 0 && p->header.type < RX_N_PACKET_TYPES) {
+ if (p->header.type > 0 && p->header.type <= RX_N_PACKET_TYPES) {
if (rx_stats_active) {
rx_atomic_inc(&rx_stats.packetsRead[p->header.type - 1]);
}
* accurate enough until now in the lwp implementation (rx_Listener only gets
* the time after the packet is read) and (2) from a protocol point of view,
* this is the first time the packet has been seen */
- packetType = (np->header.type > 0 && np->header.type < RX_N_PACKET_TYPES)
+ packetType = (np->header.type > 0 && np->header.type <= RX_N_PACKET_TYPES)
? rx_packetTypes[np->header.type - 1] : "*UNKNOWN*";
dpf(("R %d %s: %x.%d.%d.%d.%d.%d.%d flags %d, packet %p\n",
np->header.serial, packetType, ntohl(host), ntohs(port), np->header.serviceId,
*host = from.sin_addr.s_addr;
*port = from.sin_port;
- if (p->header.type > 0 && p->header.type < RX_N_PACKET_TYPES) {
+ if (p->header.type > 0 && p->header.type <= RX_N_PACKET_TYPES) {
if (rx_stats_active) {
rx_atomic_inc(&rx_stats.packetsRead[p->header.type - 1]);
}
*host = from.sin_addr.s_addr;
*port = from.sin_port;
if (rx_stats_active
- && p->header.type > 0 && p->header.type < RX_N_PACKET_TYPES) {
+ && p->header.type > 0 && p->header.type <= RX_N_PACKET_TYPES) {
rx_atomic_inc(&rx_stats.packetsRead[p->header.type - 1]);
}