getnet.h
/* Free all resources used by a struct netif list */
Free all resources used by a struct netif list
Free all resources used by a struct netif list
void freenetifs(struct netif *start)
{
	struct netif *current;
	for (current = start; current != NULL; ) {
		GETNET_FREE(current->name);
		GETNET_FREE(current->ip4addr);
		GETNET_FREE(current->ip6addr);
		GETNET_FREE(current->macaddr);
		struct netif *next = current->next;
		GETNET_FREE(current);
		current = next;
	}
}
void freenetifs ( struct netif * start ) { struct netif * current ; for ( current = start ; current != NULL ; ) { GETNET_FREE ( current -> name ) ; GETNET_FREE ( current -> ip4addr ) ; GETNET_FREE ( current -> ip6addr ) ; GETNET_FREE ( current -> macaddr ) ; struct netif * next = current -> next ; GETNET_FREE ( current ) ; current = next ; } }
Free all resources used by a struct netif list
Free all resources used by a struct netif list