Lines Matching refs:packet_state
48 int *packet_state; variable
59 packet_state = malloc(number_nodes * sizeof(int)); in alloc_size()
89 free(packet_state); in dealloc_size()
157 if (packet_state[pos] == PACKET_START) { in fifo_handler()
170 if (packet_state[pos] == PACKET_START) { in fifo_handler()
177 packet_state[pos] = FRAME_SIZE; in fifo_handler()
185 } else if (packet_state[pos] == FRAME_SIZE) { in fifo_handler()
188 packet_state[pos] = PACKET_PSDU; in fifo_handler()
189 } else if (packet_state[pos] == PACKET_PSDU) { in fifo_handler()
194 packet_state[pos] = 0; in fifo_handler()
211 if (packet_state[pos] == PACKET_START) { in fifo_handler()
218 packet_state[pos] = FRAME_SIZE; in fifo_handler()
225 } else if (packet_state[pos] == FRAME_SIZE) { in fifo_handler()
228 packet_state[pos] = PACKET_PSDU; in fifo_handler()
229 } else if (packet_state[pos] == PACKET_PSDU) { in fifo_handler()
234 packet_state[pos] = 0; in fifo_handler()
243 if (packet_state[pos] == PACKET_START) { in fifo_handler()
309 packet_state[i] = 0; in main()