equal
deleted
inserted
replaced
98 assert(packet != NULL); |
98 assert(packet != NULL); |
99 |
99 |
100 packet->pos = 0; |
100 packet->pos = 0; |
101 packet->next = NULL; |
101 packet->next = NULL; |
102 |
102 |
103 packet->buffer[0] = packet->size & 0xFF; |
103 packet->buffer[0] = GB(packet->size, 0, 8); |
104 packet->buffer[1] = packet->size >> 8; |
104 packet->buffer[1] = GB(packet->size, 8, 8); |
105 |
105 |
106 // Locate last packet buffered for the client |
106 // Locate last packet buffered for the client |
107 p = cs->packet_queue; |
107 p = cs->packet_queue; |
108 if (p == NULL) { |
108 if (p == NULL) { |
109 // No packets yet |
109 // No packets yet |