Esempio n. 1
0
void udp_init(void)
{
	int i;

	DCC_LOG(LOG_TRACE, "initializing UDP subsystem."); 

	pcb_list_init(&__udp__.free);
	for (i = 0; i < NET_TCP_PCB_ACTIVE_MAX; ++i) {
		struct udp_pcb * up = &__udp__.pcb_pool[i].pcb;
		pcb_insert((struct pcb *)up, &__udp__.free);
	}

	pcb_list_init(&__udp__.active);
}
Esempio n. 2
0
void raw_init(void)
{
	int i;

	DCC_LOG(LOG_TRACE, "initializing RAW subsystem."); 

	pcb_list_init(&__raw__.free);

	for (i = 0; i < NET_RAW_PCB_MAX; ++i) {
		struct raw_pcb * p = &__raw__.pcb_pool[i].pcb;
		pcb_insert((struct pcb *)p, &__raw__.free);
	}

	pcb_list_init(&__raw__.active);
}